From owner-freebsd-questions@FreeBSD.ORG Thu Nov 15 18:35:28 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F6A216A46B for ; Thu, 15 Nov 2007 18:35:28 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id 16EE313C4BE for ; Thu, 15 Nov 2007 18:35:27 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so3804840pyb for ; Thu, 15 Nov 2007 10:35:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=kr5EyiHv2gOQqcIzdB/t7fptBxifN9xDIaH2aVSvmAk=; b=aIDRQFTgjLmbtqONb/r9YP5I94sf4hX5SYOMJlPOHAXVIL4X2ih9XCExpKd/ayC4WW8aKNyIzDoG5KfyT1zbemwTP6TLQILPduUejok/Gwtl+TEYlkZHS9p49LX3fa19c6cOAg8/bSziufGIydgWGEbZyQxcceoe2UyttpNes2U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Xpz71bozqAqI7RmwZ7ABKNpI/jQE+qMR3P/6csU3KTb8uG4nFtJBSiUFbmY7l2G4rq1PKlLOnMcFjnoE7ipVxOFiMa/mlheeMXpoWtcKd3aTZ9BPrjdm4yoGy+ElarZtbLe2gkvKkNIcCkW0V8C7o4KiPHsFfqZ3euRJVP+Ezqs= Received: by 10.35.84.9 with SMTP id m9mr1119529pyl.1195151727381; Thu, 15 Nov 2007 10:35:27 -0800 (PST) Received: by 10.35.57.12 with HTTP; Thu, 15 Nov 2007 10:35:27 -0800 (PST) Message-ID: <8cb6106e0711151035n2d33e58fja03637a1a6a89a9e@mail.gmail.com> Date: Thu, 15 Nov 2007 13:35:27 -0500 From: "Josh Carroll" To: "Robert Huff" In-Reply-To: <18236.36570.116953.110494@jerusalem.litteratus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <18236.36570.116953.110494@jerusalem.litteratus.org> Cc: questions@freebsd.org Subject: Re: semi-OT: awk - field separator X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2007 18:35:28 -0000 > 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