The sponge command is used to read all data from standard in then write it to a file. It reads all data in, before opening the output file.| Putorius