File:  [CSRG BSD Unix] / 42BSD / usr.lib / learn / editor / L42.2a
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
Normally the 's' command only changes the first instance
on a line of the expression it is recognizing.  Sometimes you want
to change everything.  For example, try the following sequence,
and note the difference between the changes on the two lines.

ex test
1,2p
1s/cat/cats/p
2s/cat/cats/gp
wq
ready
#create Ref
the cats in the catalog is a persian cat
the cats in the catsalog is a persian cats
#create test
the cat in the catalog is a persian cat
the cat in the catalog is a persian cat
#user
#cmp test Ref
#log
#next
42.2b 5

unix.superglobalmegacorp.com

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