diff options
Diffstat (limited to 'usr.bin/learn/lib/editor/L35.2c')
-rw-r--r-- | usr.bin/learn/lib/editor/L35.2c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/editor/L35.2c b/usr.bin/learn/lib/editor/L35.2c new file mode 100644 index 00000000000..cbf4e9d320a --- /dev/null +++ b/usr.bin/learn/lib/editor/L35.2c @@ -0,0 +1,22 @@ +#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 |