File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / usr.lib / learn / editor / L6.2a
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 does the editor choose a line to print?
It always remembers a 'current line', which
is the last line of the file originally,
but you can choose any line you want.  The command

3p

prints the third line of the file, for example.  And

1p

prints the first line.  Note that is the digit one there,
not the letter l, no matter how much alike they look.  I'll
put you into the editor with the file listed below: print
the first line, then type 'w', 'q' and "ready" as usual.
#create Ref
:george washington
#create file
george washington
john adams
thomas jefferson
james madison
james monroe
john quincy adams
#print file
#copyout
#pipe
ex +'set prompt noopt open' file
#user
#unpipe
#uncopyout
grep washington .ocopy >X2
#cmp Ref X2
#log
#next
6.2b 5

unix.superglobalmegacorp.com

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