Might try a Single Quote ( ' ) or a backslash-Single Quote ( \' )... if
that works you could use a Double Single Quote to give the illusion of a
Double Quote maybe... Just a thought.
Good luck !!
________________________________
From: geeksthatgawk@yahoogroups.com
[mailto:geeksthatgawk@yahoogroups.com] On Behalf Of spillikinaerospace
Sent: Tuesday, July 04, 2006 10:29 PM
To: geeksthatgawk@yahoogroups.com
Subject: [Geeks that Gawk] mawk: print command with special characters?
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
This email may contain confidential and privileged material for the sole use of
the intended recipient(s) and only for those purposes previously or herein
authorized by the sender. Any review, use, distribution or disclosure by others,
or use by the recipient for unauthorized purposes, is strictly prohibited. If
you are not the intended recipient (or authorized to receive for the recipient),
please contact the sender by reply email and delete all copies of this message.
[Non-text portions of this message have been removed]