Access to UNIX-Related Publications
Sun Visualization Products
matthew at sunpix.UUCP
Mon Jan 8 05:39:55 AEST 1990
In article <166 at omaha1.UUCP> wcc at omaha1.UUCP (William C Carey) writes:
>
>Any of the luminaries out there know how to get 'awk' (not nawk) to ouput a
>single-quote character ( ascii 0x27 ). I can't get the 'print' or
>
Here's an example that should get you in the right direction:
awk 'BEGIN {
SQ = sprintf("%c", 39);
DQ = sprintf("%c", 34);
}
{
printf("%cHow is this?%c\n", DQ, DQ);
printf("%cAnd this?%c\n", SQ, SQ);
}
--
Matthew Lee Stier |
Sun Microsystems --- RTP, NC 27709-3447 | "Wisconsin Escapee"
uucp: sun!mstier or mcnc!rti!sunpix!matthew |
phone: (919) 469-8300 fax: (919) 460-8355 |
More information about the Comp.unix.questions
mailing list