BSD 3 development
[unix-history] / usr / lib / learn / files / L3.3b
CommitLineData
fd15fd37
BJ
1#print
2Of course, you can print any file with "cat".
3In particular, it is common to first use
4"ls" to find the name of a file and then "cat"
5to print it. Note the difference between
6"ls", which tells you the name of the files,
7and "cat", which tells you the contents.
8
9One file in the current directory is named for
10a 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
18cp .ocopy X2
19tail -3 .ocopy >X1
20#cmp X1 roosevelt
21#log
22#next
233.2b 2