Search and Compare Commands



next up previous contents index
Next: Miscellaneous Commands Up: Specific Unix Commands Previous: Search, Compare Comm

Search and Compare Commands

You can try any of these commands by cutting them with your mouse and pasting them into a UNIX window. If there are filenames or other variables you need to change, they are indicated by italics .

SEARCH, COMPARE
diff file1 file2
List lines in file2 differing from file1.
file fname
List fname's type (ASCII, text, directory, object).
grep pat fname
Print lines in file fname containing pattern pat.
sort fname
Sort lines of fname based on options.
spell fname
Check fname for spelling errors,
(programs such as ispell corrects them).





next up previous contents index
Next: Miscellaneous Commands Up: Specific Unix Commands Previous: Search, Compare Comm