Date: Mon, 16 Oct 2000 17:07:56 +0200 From: "Marc Wandschneider" <marcw@lanfear.com> To: "Giorgos Keramidas" <keramida@ceid.upatras.gr> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: AWK trivia Message-ID: <003401c03782$deab0540$0800000a@lanfear.com> References: <000701c036d4$d6578340$0800000a@lanfear.com> <20001016065304.A66023@gray.westgate.gr>
index | next in thread | previous in thread | raw e-mail
>
> <off the top of my head awk & sed games>
>
> 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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003401c03782$deab0540$0800000a>
