File:  [CSRG BSD Unix] / 43BSD / usr.lib / learn / editor / L13.3a
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

#print
The 'nu' command works the same way as 'p',
except that it puts the line number to the
left of each line that it prints.

I will put you in the editor with the file 'henry'.  Type

1,$nu

and then write, quit, and type ready as usual.
Note that the line numbers do not actually become part
of the text of the file, but just appear displayed
next to it.
#create henry
Murray Hill
Holmdel
Whippany
Madison
Piscataway
Chester
Warren
#pipe
#copyin
ex +'set prompt noopt open' henry
#user
#uncopyin
#unpipe
grep '1,$nu' .copy > /dev/null
#log
#next
14.1a 10
14.2a 5

unix.superglobalmegacorp.com

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