coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is the command `sort input.txt -o input.txt` OK?


From: Peng Yu
Subject: Is the command `sort input.txt -o input.txt` OK?
Date: Sat, 15 Mar 2014 11:26:04 -0500

Hi,

`sort input.txt -o input.txt` overwrites the input file. My
understanding is that sort reads everything and then write the output.
So it is OK to overwrite the original file. But I want to be sure. Can
anyone confirm if this is the case? Thanks.

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]