>>>>> "Peter" == Peter Rundle <[EMAIL PROTECTED]> writes:
Peter> Sluggers, Trying to hack out a program in awk and I need to
Peter> print out a single quote, I've tried
Peter> printf("Some \'single quoted\' stuff\n");
Peter> how do I escape a single quote in awk?
With a backslash. But as awk's input is usually on the command line,
you need some shell quoting as well.
awk 'END {printf("Some '\''single'\'' quoted stuff\n");}' </dev/null
Peter C
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug