Will Senn <will.senn(a)gmail.com> wrote:
I'm not looking for code review, but the code is
intended to replace the
tabs and backspaces with \t and \b respectively, but I haven't been able
to test it because I can't seem to make a backspace character appear in
input. In later unices, ^V followed by the backspace would work, but
that's not part of v7. Backspace itself is my erase character, so
anytime I just type it, it backspaces :).
awk 'BEGIN { print "a\bc\td" ; exit }' | your-program
Enjoy,
Arnold
P.S. The exit is needed for V7 awk, IIRC, not modern ones.