[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26279: sort bug
From: |
Reuti |
Subject: |
bug#26279: sort bug |
Date: |
Tue, 28 Mar 2017 15:36:34 +0200 |
Hi,
> Am 28.03.2017 um 13:13 schrieb Ismael Cama <address@hidden>:
>
> 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