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

#print
You can use '*' to look for a string of characters
from one of the character classes.  Suppose, for example,
we wanted a long string of either 'a' or 'b', followed
by 'x'.  Then we could write

  s/[ab]*x/.../

In this directory is a file named "table".
It has only one line.  On that line, replace all the digits
followed by a comma with the letters "too big".  For example,
"123,000" should become "too big,000".
Then rewrite the file and type "readY".
#create Ref
Heathrow  too big,159
#create table
Heathrow  17073,159
#user
#cmp table Ref
#log
#next
35.2d 5

unix.superglobalmegacorp.com

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