summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/editor/L10.3f
blob: 28526fae925c180862fc140617479e3ed36b61c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#print
How would you print from the first line of a file to
the next to last line (thus printing all but the last
line of something)?  I'll put you in the editor - do that
and then type the usual w, q and ready.
#create Ref
Boroughs
  Manhattan
  Brooklyn
  Queens
  the Bronx
  Staten Island
92
#create file
Boroughs
  Manhattan
  Brooklyn
  Queens
  the Bronx
  Staten Island
Don't print this line!
#copyout
#pipe
ed file
#user
#unpipe
#uncopyout
tail -7 .ocopy >X1
#cmp X1 Ref
#log
#next
10.1b 5