Files
seta75D d6fe8fe829 Init
2021-10-11 22:19:34 -03:00

40 lines
1000 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 of course use the [] operators anywhere in
a pattern. Editor patterns, by the way, are called
"regular expressions". For example, suppose you wanted
to change either the word "trick" or the word "track"
to "stop". What command would you need?
Do you see that
s/tr[ia]ck/stop/p
will do that? Now figure out what command you would
need to change either "bear" or "beat" into "best"
and print the line after the change.
Type "answer COMMAND" where COMMAND is that line.
#copyin
#user
#uncopyin
#match s/bea[rt]/best/p
#match s/bea[tr]/best/p
#match s/bea[rt]/best/
You forgot the "p" part.
#match s/bea[tr]/best/
You forgot the "p" part.
#log
#next
33.2c 5