|
|
1.1 ! root 1: #print ! 2: You have already had some practice in using ">" to capture ! 3: the output of a program. In much the same way, it ! 4: is possible to arrange for a program to take its input not ! 5: from the terminal but from a file. ! 6: Most UNIX programs are written so that they will read either ! 7: the terminal or from a list of filenames. ! 8: To have a program read from a file instead of the terminal, ! 9: use the "<", like this: ! 10: pr <file ! 11: As a simple experiment, determine if ! 12: pr <file ! 13: is absolutely identical to ! 14: pr file ! 15: Answer yes or no. ! 16: #create junk ! 17: you can use this file to play with. ! 18: #copyin ! 19: #user ! 20: #uncopyin ! 21: #match no ! 22: #log ! 23: #next ! 24: 4.1b 10 ! 25: 4.2a 5
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.