in UNIX script programming, cat is a command that can combine two files:
cat file1 file2 > file3
this generates a third combination of the first two.
Also, a cat can be used with a pipe:
cat file1 | tail -4
this list will list the last 4 lines of file 1.
question: how could I combine the last 4 lines of file 1 and 2 to generate file 3?
I got a little lost here: how to give 2 input streams for cat?
athos source
share