BSD 4_1_snap development
[unix-history] / usr / lib / learn / editor / L44.1h
CommitLineData
3eb5d546
C
1#print
2The next trick is to substitute a "\" into a line.
3The same idea holds: simply double the backslash,
4but this time on the right side of the "s" command.
5
6In the file "prog.c", convert every
7 'n'
8into
9 "\n"
10Re-write the file, and type "ready".
11#create Ref
12 x = "\n";
13 y = 'nop';
14 z = 'lmn';
15 q = "n";
16 r = "\n"+1;
17 s = "\n" - "\n";
18#create prog.c
19 x = 'n';
20 y = 'nop';
21 z = 'lmn';
22 q = "n";
23 r = 'n'+1;
24 s = 'n' - 'n';
25#user
26#cmp Ref prog.c
27#log
28#next
2944.1i 10