Last Updated: February 25, 2016
·
305
· X0nic

Combine stdout and file into stream

Sometimes you may want to combine input from sdtout and a file into one pipe. For example if you are unzipping compressed logs files and combing them with uncompressed log files and passing that on to grep or something.

echo "Hello " | cat - word.txt
# Hello World