summary awk question

From: Joe LaCascio <jlacasci_at_wheatonma.edu>
Date: Fri, 10 Aug 2001 11:06:23 -0400 (EDT)

I got a lot of answers rather quickly, thanks. Most folks said to just
escape the quotes \'CA\' but this didn't work. Neither did \\'CA\\' or
\\\\'CA\\\\'. Thanks to Jean-Marie, here's the solution that worked
from me:


try: awk -v quote="'" '{print $1 ", " quote "CA" quote}' some_file > foo

Joe


> How can I get awk to produce a singe quote in my output file?
>
Received on Fri Aug 10 2001 - 15:07:13 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT