Comment Comment by charliesome Re sponge: the shell will open the output file for writing before invoking the command so in the example joey provides, /etc/passwd will be an empty file by the time sed opens it. parent charliesome 6 years ago