Bell 32V development
[unix-history] / usr / lib / learn / editor / L13.1a
CommitLineData
fed84c9b
TL
1#print
2Remember we said that you didn't have to know the
3number of the last line, because '$' could
4always be used for that. What if you want to know
5how long the file is? Well, the editor command
6 $=
7will tell you what '$' is set to, i.e. the number of
8lines in the file. You can find the number of lines in
9any file, then, by editing it and then typing "$=".
10(You then must leave the editor with the usual w,q).
11How many lines are there in file 'henry'? You may want to check
12by listing the file with "cat" as well as by using "$="
13in the editor. Don't forget to leave the editor with
14the usual 'w', 'q'; eventually, type "answer N"
15where N is the number of lines.
16#create henry
17Murray Hill
18Holmdel
19Whippany
20Madison
21Piscataway
22Chester
23Warren
24#copyin
25#pipe
26#user
27#unpipe
28#uncopyin
29#match 7
30#log
31#next
3214.1a 10