4.3BSD-UWisc/lib/learn/editor/L10.3f

#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
:"file" 7 lines, 92 characters
#create file
Boroughs
  Manhattan
  Brooklyn
  Queens
  the Bronx
  Staten Island
Don't print this line!
#copyout
#pipe
ex +'set prompt noopt open' file
#user
#unpipe
#uncopyout
tail -7 .ocopy >X1
#cmp X1 Ref 7
#log
#next
10.1b 5