File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / usr.lib / learn / editor / L10.3f
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
Power 6/32 Unix version 1.2b

#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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.