Write a 5 program pipe that does something.
At least one of the programs is to be written by you.
Each step in the piped programs is to do something useful to the
final output.
You will need to have a written problem description
as part of the turned in materials.
That is a description of the problem your program solves.
Some useful Unix programs to use as piped programs:
- sort - order list/file in alphabetical order
- sort -n - order list/file in order based on first item on a line
being a number
- cat - list a file
- uniq - drop all repeated lines
- head - list first few lines of a file
- tail - list last few lines of a file
- nroff - format input as a document (can be used to compress listings)
- more - allow you move through a file a screen load at a time
- grep - list only lines matching a pattern
(i.e. grep dogs fn - will list lines from file fn containing the string dogs)
Some example pipes:
- finger john|grep life
- w|grep juell|wc
- spell fn|nroff|uniq|more
- du|sort -n |tail
- ls -R1|sort|uniq|wc