BSD 4_1_snap development
[unix-history] / usr / lib / learn / editor / L44.1f
CommitLineData
3eb5d546
C
1#print
2The next step is to learn how to edit a line
3that contains a backslash. On the left side of an "s"
4command, you place a "\" before the "\" to turn off
5its special meaning, just as for any other special
6character like "*" or "[". For example,
7if you have the line
8 c = '\n'
9you can change it into
10 c = 'n'
11with the command
12 s/\\n/n/
13or
14 s/\\//
15(Your choice.)
16
17Practice by removing all the backslashes from the
18file "junk"; when you're done, re-write it and
19type "ready".
20#create Ref
21Now is the time for all good
22men to come to the aid of
23their party, or something like that.
24#create junk
25Now is \the \tim\\e for all good
26m\\en \to com\\e \to \the aid of
27\their par\ty, or som\\e\thing like \tha\t.
28#user
29#cmp Ref junk
30#log
31#next
3244.1g 10