36 lines
893 B
Plaintext
36 lines
893 B
Plaintext
#
|
|
# COMPONENT_NAME: (CMDMAN) commands that allow users to read online
|
|
# documentation
|
|
#
|
|
# FUNCTIONS:
|
|
#
|
|
# ORIGINS: 27
|
|
#
|
|
# Copyright (c) 1980 Regents of the University of California.
|
|
# All rights reserved. The Berkeley software License Agreement
|
|
# specifies the terms and conditions for redistribution.
|
|
#
|
|
|
|
#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
|