From owner-freebsd-questions Sun Oct 15 20:20:28 2000 Delivered-To: freebsd-questions@freebsd.org Received: from akira.lanfear.com (akira.lanfear.com [208.12.11.174]) by hub.freebsd.org (Postfix) with ESMTP id 3072837B66C for ; Sun, 15 Oct 2000 20:20:26 -0700 (PDT) Received: from jishin (dyn-dial3-226-sea.bazillion.com [64.92.50.226]) by akira.lanfear.com (8.9.3/8.9.3) with SMTP id UAA19011 for ; Sun, 15 Oct 2000 20:20:19 -0700 (PDT) (envelope-from marcw@lanfear.com) Message-ID: <000701c036d4$d6578340$0800000a@lanfear.com> From: "Marc Wandschneider" To: Subject: AWK trivia Date: Sun, 15 Oct 2000 20:22:07 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG blaugh! so, i have a file in the following format: SOME_SINGLE_WORD STRING "A quoted String" Where the two things are separated by any amount of whitespace, not including \n. I would like to set up AWK so that I end up having: $1 = SOME_SINGLE_WORD_STRING $2 = "A Quoted STring" for each line/record [with or without the quotes]. this actually appears to be non-trivial. any suggestions? i've zipped through the two texts i have on it, without much luck. thanks! marc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message