[TUHS] Literal character escapes in v7

arnold at skeeve.com arnold at skeeve.com
Tue Nov 7 14:34:47 AEST 2017


Will Senn <will.senn at 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.


More information about the TUHS mailing list