File:  [CSRG BSD Unix] / 43BSDReno / usr.bin / learn / learnlib / editor / L44.1h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

#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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.