Commit | Line | Data |
---|---|---|
fd15fd37 BJ |
1 | |
2 | Of course, you can print any file with "cat". | |
3 | In particular, it is common to first use | |
4 | "ls" to find the name of a file and then "cat" | |
5 | to print it. Note the difference between | |
6 | "ls", which tells you the name of the files, | |
7 | and "cat", which tells you the contents. | |
8 | ||
9 | One file in the current directory is named for | |
10 | a President. Print the file, then type "ready". | |
11 | #create roosevelt | |
12 | this file is named roosevelt | |
13 | and contains three lines of | |
14 | text. | |
15 | #copyout | |
16 | #user | |
17 | #uncopyout | |
18 | cp .ocopy X2 | |
19 | tail -3 .ocopy >X1 | |
20 | #cmp X1 roosevelt | |
21 | #log | |
22 | #next | |
23 | 3.2b 2 |