What's the syntax to insert a non-printing char (e.g. octal 012) into a string? I've tried things like:
but whatever I try it doesn't substitute to the single ascii character (this exampe would hopefully split the line but there are other non printing chars I want to insert into a string).
I'm using ksh on Solaris 8 (I could use other shells if required).
Thanks in advice, Chris
Code:
# date
Wednesday June 25 14:17:22 BST 2008
# date | sed 's/BST/\012/'
Wednesday June 25 14:17:47 012 2008
#
but whatever I try it doesn't substitute to the single ascii character (this exampe would hopefully split the line but there are other non printing chars I want to insert into a string).
I'm using ksh on Solaris 8 (I could use other shells if required).
Thanks in advice, Chris