Start development on BSD 4
[unix-history] / .ref-5cb41021d721f4e0ac572d592613f963e495d1ff / .ref-BSD-3 / 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 analogous sequence <\b-.
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