What is a filter? (cont)
Example: cat MyProg.c
- reads the text of the program in the file
MyProg.c
- writes the (untransformed) text to standard output (i.e. the screen)
Example: cat < MyProg.c
- the shell (command interpreter)
connects the file
MyProg.c to standard input of cat
-
cat reads its standard input
- writes the (untransformed) text to standard output (i.e. the screen)
|