File:  [CSRG BSD Unix] / 43BSDReno / usr.bin / learn / learnlib / editor / L6.2a
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

#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.