From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnold@skeeve.com (arnold@skeeve.com) Date: Mon, 06 Nov 2017 21:34:47 -0700 Subject: [TUHS] Literal character escapes in v7 In-Reply-To: References: Message-ID: <201711070434.vA74YlrN020951@freefriends.org> Will Senn 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.