Hi, > Am 28.03.2017 um 13:13 schrieb Ismael Cama <[email protected]>: > > When you try to sort a file and write the result in the same file, all the > contents are deleted. Example: > > sort foo.txt > foo.txt
This happens as the bash opens and resets the output before anything is processed. This should work: $ sort -o foo.txt foo.txt -- Reuti
signature.asc
Description: Message signed with OpenPGP using GPGMail
