Hi,
can someone help me with this?
i want the print command to print a double quote mark as part of a
string. mawk won't have it. a double quote is a control character and
mawk will be damned if it's gonna let me treat it like a regular
character.
i wanna change this:
jack spratt could
eat no fat
to this:
jack " spratt could
eat " no fat
and i wanna do it on the command line. something like this:
mawk "{ print $1, [some expression that mawk will recognize as a
quote], $2, $3}" input.txt > output.txt
i've tried *everything*. \", \\", \\\", "\"", /\"/, \x22, "\x22" .....
any combination you could possibly think of. i've read whatever
references i could find. nothing works.
anybody out there who's been there and done that?
thanx, mike