File:  [CSRG BSD Unix] / 43BSDReno / usr.bin / learn / learnlib / editor / L40.1a
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
There is also a special character which indicates
the end of the line.  It is '$'.  So that
  s/ab$/xy/
changes 'ab' to 'xy' only if 'ab' ended the line.
In the file 'text' there are some lines which end
in 'cup'.  Change them to end in 'saucer'.  Again,
it only takes one command.
Then rewrite the file and type 'ready'.
#create Ref
3 teaspoons = 1 tablespoon
16 tablespoons = 1 saucer
48 teaspoons = 1 saucer
2 cups = 1 pint
2 pints = 1 quart
1/2 pt = 1 saucer
#create text
3 teaspoons = 1 tablespoon
16 tablespoons = 1 cup
48 teaspoons = 1 cup
2 cups = 1 pint
2 pints = 1 quart
1/2 pt = 1 cup
#user
#cmp text Ref
#log
#next
40.1b 5
40.2b 10

unix.superglobalmegacorp.com

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