File:  [CSRG BSD Unix] / 42BSD / usr.lib / learn / editor / L7.1b
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:54 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD42
BSD 4.2

#print
As I said, '.' is set to the last line touched
by any command in the editor.  So if you type
  3p
. will be set to line 3; and then 
  .p
will print the same line.
Try that - 
with the usual trailer, the commands should be

3p
.p
w
q
ready

The file is the same as before.
#create Ref
3p
.p
w
q
#create file
george washington
john adams
thomas jefferson
james madison
james monroe
john quincy adams
#pipe
#copyin
ex +'set prompt noopt open' file
#user
#uncopyin
#unpipe
tail -4  .copy >X1
#cmp X1 Ref
#log
#next
8.1a 10
8.2a 6
7.2c 2

unix.superglobalmegacorp.com

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