BSD 4_3_Tahoe release
[unix-history] / usr / lib / learn / C / L5.1f
#print
(Section 1.5)
Write a program to replace each tab by the
three-character sequence >, backspace, -,
which prints as >\b-. The program should also replace
each backspace by the sequence <, backspace, -.
Compile it, test it, then type ready.
#once #create Ref
This contain \bs a back \bspace and a tab.
#once #create Ref1
This contain <\b-s a back <\b-space and a>\b-tab.
#user
a.out <Ref >test
#cmp test Ref1
#log
#next
5.1g 10