File:  [CSRG BSD Unix] / 43BSD / usr.lib / learn / editor / L30.2c
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
As with other commands, you can specify a line number
with the 's' command.  Thus
  3s/x/a/
will change the first 'x' on line 3 to an 'a'.  Here is
a file "street" in which the fifth line has an 'r'
where it should have an 'a'.  Try
the sequence

ex street
5s/r/a/
5p
wq
ready
#create Ref
first avenue
second avenue
third avenue
lexington avenue
park avenue
madison avenue
#create street
first avenue
second avenue
third avenue
lexington avenue
prrk avenue
madison avenue
#user
#cmp street Ref
#log
#next
30.2d 5

unix.superglobalmegacorp.com

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