Date: Thu, 15 Nov 2007 13:35:27 -0500 From: "Josh Carroll" <josh.carroll@gmail.com> To: "Robert Huff" <roberthuff@rcn.com> Cc: questions@freebsd.org Subject: Re: semi-OT: awk - field separator Message-ID: <8cb6106e0711151035n2d33e58fja03637a1a6a89a9e@mail.gmail.com> In-Reply-To: <18236.36570.116953.110494@jerusalem.litteratus.org> References: <18236.36570.116953.110494@jerusalem.litteratus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> What is the canonical way to get (FreeBSD default) awk to use a > single double-quote as the field separator? I have tried variations > on -F\\\" and -F"\"" and the best I can get is: > > + awk -F" {print $2} > ./script.sh: 1: Syntax error: word unexpected awk -F'"' That's a single quote, then a double quote, then another single quote. Or: awk -F\" should also work. Regards, Josh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8cb6106e0711151035n2d33e58fja03637a1a6a89a9e>