[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SLUG] Script needed
On Thu, Jun 01, 2000 at 02:55:18PM +1000, Matthew Dalton wrote:
>
> $ cat input | sed -e 's/:.*//' > output
Oh yeah, and for a shell-only (assuming read and echo are builtins which holds
for ash, bash, and most Bourne shells) version:
while read LINE; do
echo ${LINE%%:*}
done
--
Debian GNU/Linux 2.1 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <herbert@nospam.gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to slug-request@nospam.slug.org.au with
unsubscribe in the text