From owner-freebsd-questions Mon Oct 16 17: 6:23 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 C507C37B66D for ; Mon, 16 Oct 2000 17:06:20 -0700 (PDT) Received: from jishin (dyn-dial3-134-sea.bazillion.com [64.92.50.134]) by akira.lanfear.com (8.9.3/8.9.3) with SMTP id RAA20233; Mon, 16 Oct 2000 17:05:57 -0700 (PDT) (envelope-from marcw@lanfear.com) Message-ID: <003401c03782$deab0540$0800000a@lanfear.com> From: "Marc Wandschneider" To: "Giorgos Keramidas" Cc: References: <000701c036d4$d6578340$0800000a@lanfear.com> <20001016065304.A66023@gray.westgate.gr> Subject: Re: AWK trivia Date: Mon, 16 Oct 2000 17:07:56 +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 > > > > I would try something like: > > % sed -e 's/[ ^I]*/:/' > > to make the first part of the line (the one including > SOME_SINGLE_WORD_STRING, in your example) be separated from the rest of > the line by a single ':' character. > > Then it should be fairly easy to have AWK print what you want. > thanks for the suggestions -- in the end, given that i was also hoping to support strings wrapping over newlines, i just wrote a 30 line c program to do it instead :-) marc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message