Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.hawaii.edu!news.uoregon.edu!arclight.uoregon.edu!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail From: brian@awfulhak.demon.co.uk (Brian Somers) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: sh command shell script writing. i'm stuck Date: 26 Jul 1996 17:03:53 +0100 Organization: Coverform Ltd. Lines: 13 Message-ID: <4taq99$bg@anorak.coverform.lan> References: <4t02d1$nec@cliff.island.net> NNTP-Posting-Host: localhost.coverform.lan X-NNTP-Posting-Host: awfulhak.demon.co.uk X-Newsreader: TIN [version 1.2 PL2] Victor Aker (bryanm@north.island.net) wrote: : tempuser=$(ls /home | cat -n | grep -G "$counter" Personally, I prefer ls /home | sed -n ${counter}'{ p; q; }' I've fount awk to be slow (although richer) relative to sed. -- Brian <brian@awfulhak.demon.co.uk> Don't _EVER_ lose your sense of humour....