diff options
author | Ian Darwin <ian@cvs.openbsd.org> | 1998-09-28 16:01:46 +0000 |
---|---|---|
committer | Ian Darwin <ian@cvs.openbsd.org> | 1998-09-28 16:01:46 +0000 |
commit | 8d70bdbdf6fd88bf88b9a384cfaafb6668c804ec (patch) | |
tree | 034fd6a68d5b6928d6fe4e51de71c9868bb460b1 /usr.bin/learn/lib/editor/L32.2a | |
parent | e9be7faad5fbf61edcad3700142615e315e407bc (diff) |
import BTL learn(1) lessons/editor
Diffstat (limited to 'usr.bin/learn/lib/editor/L32.2a')
-rw-r--r-- | usr.bin/learn/lib/editor/L32.2a | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/editor/L32.2a b/usr.bin/learn/lib/editor/L32.2a new file mode 100644 index 00000000000..73496b8a0bf --- /dev/null +++ b/usr.bin/learn/lib/editor/L32.2a @@ -0,0 +1,32 @@ +#print +Just as you can use abbreviations to specify a class of +filenames, you can use abbreviationss in the editor to recognize +strings in the substitute command. Unfortunately, the +characters used in the editor are quite different from the +ones used in the file-name handler to specify patterns. +(Sorry about that, but that's the way the world is.) + +The symbol for 'any character' is '.' and this will +match any single letter or other character in a line. +For example, + s/a./bc/ +looks for an 'a' followed by anything, and changes those +two letters into 'bc'. Try this sequence and note +what happens. + +ed line +p +s/a./bc/p +w +q +ready +#create Ref +me bcd you +#create line +me and you +#user +#cmp line Ref +#log +#next +32.2b 5 +32.2c 10 |