Xref: utzoo comp.unix.questions:18852 comp.unix.wizards:20052 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mcnc!rti!sunpix!matthew From: matthew@sunpix.UUCP ( Sun Visualization Products) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: Access to UNIX-Related Publications Message-ID: <1050@friar-taac.UUCP> Date: 7 Jan 90 18:39:55 GMT References: <487@longway.TIC.COM> <166@omaha1.UUCP> Reply-To: matthew@friar-taac.UUCP (Matthew Stier - Sun Visualization Products) Organization: Sun Microsystems, RTP, NC Lines: 24 In article <166@omaha1.UUCP> wcc@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 |