summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/editor/L44.1h
blob: c8db43ef05f5e3bb1edf988c9c714652d02f5707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#print
The next trick is to substitute a "\" into a line.
The same idea holds: simply double the backslash,
but this time on the right side of the "s" command.

In the file "prog.c", convert every
   'n'
into
   "\n"
Re-write the file, and type "ready".
#create Ref
  x = "\n";
  y = 'nop';
  z = 'lmn';
  q = "n";
  r = "\n"+1;
  s = "\n" - "\n";
#create prog.c
  x = 'n';
  y = 'nop';
  z = 'lmn';
  q = "n";
  r = 'n'+1;
  s = 'n' - 'n';
#user
#cmp Ref prog.c
#log
#next
44.1i 10