Stummi 1349873642 learn in general you can't read and write a the same file at same time. "sort file > file" won't work. If your tool has not an in-place variant, use a temporary file Stummi 1349873689 forget Stummi 1349873706 learn in general you can't read from and write to the same file at the same time. "sort file > file" won't work. If your tool has not an in-place variant, use a temporary file larryv 1613921548 forget larryv 1613921558 learn In general, you can't read from and write to the same file at the same time: "sort file > file" won't work. If your tool cannot edit files in place, use a temporary file. See https://mywiki.wooledge.org/BashPitfalls#pf13 emanuele6 1673608329 forget emanuele6 1673608366 learn In general, you can't read from and write to the same file at the same time: "sed 's/abc/xyz/' file > file" won't work. If your tool cannot edit files in place, use a temporary file. See https://mywiki.wooledge.org/BashPitfalls#pf13