next up previous
Next: Checking Spelling (spellispell) Up: USING UNIX Previous: Printing Files (lplpstat,

Comparing and Concatenating Files (diff, cat)

If you do diff file1 file2 you will get a list of the differences between the two files.

To take two files and put them end to end in a new file you use cat file1 file2 > newfile. To put a file at the end of an existing file type cat file1 >> existingfile.