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
Written by Nathan Lee
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#