Filters

These are a group of simple utilities that process streams of data, performing some sort of analysis or text manipulation as the data passes through. The potential of these programs is only realised when they are used in conjunction with each other, using pipelines.

Command, Effect

more file
types a file's contents, one screen or line at a time
diff oldf newf
finds the differences between oldf and newf
head file
types the first 10 lines of a file
tail file
types the last 10 lines of a file
sort file
sorts lines of file into alphabetical order
spell file
checks the spelling of a file
rev file
reverses each line in a file
uniq file
eliminates all adjacent duplicate lines
wc file
counts lines, words, characters in a file

Help: for more information type man followed by any of the above commands.