How can I save all input from a pipe command to a text file.
# cat any.text | ????? > new.text
What command will substitute ????? so the output of "cat any.txt
" could be saved to another file. It's not about simply redirecting the "cat" command to file (using >), but a command to process something from stdin to create a file containing all output process.
One solution I could imagine is using "grep . > new.text
", but this command will cut the space between the output. Is there any other solution.