Skip to main content

9.2) Joining Files


Now if you type:

cat file1 file2

The cat command will output the following to your screen:

0.1      2.3
0.2      4.3
0.3      4.9
0.4      6.2
0.5      7.1
0.6      9.3
0.7      8.4
0.8      4.3
0.9      2.1
0.10     0.9

So cat is a neat way to join files. Try the above out for yourself. If files were always so small it wouldn’t be that important of a command but we can use this command to join files that are sometimes thousands of lines long.