[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SLUG] Script needed



On Thu, Jun 01, 2000 at 03:26:22PM +1000, Adam Kennedy wrote:
> > perl -F: -anle 'print $F[0]' </etc/passwd
> >
> > > perl -e 'print grep { s/^(\w+)\:.*$/$1/; 1; } <>' < inputfile >
> outputfile
> > >
> 
> True, but that is a way of applying any arbitrary regex...
> Comes in very handy for doing lots of other things too.
> 
> More complicated, but more powerfull.

It's not more powerful when it's not the best way of doing a job.

KISS and don't bloat. :)

-- 
CaT (cat@nospam.zip.com.au)                       URL: http://www.zip.com.au/dev/null

	'He had position, but I was determined to score.'
		-- Worf, DS9, Season 5: 'Let He Who Is Without Sin...'
--
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