[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SLUG] Script needed
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 1 Jun 00, at 15:08, Tony Cook wrote:
> If you're going to use perl:
>
> perl -F: -anle 'print $F[0]' </etc/passwd
>
> but I like the cut solution best.
>
> On Thu, 1 Jun 2000, Adam Kennedy wrote:
>
> > perl -e 'print grep { s/^(\w+)\:.*$/$1/; 1; } <>' < inputfile >
> > outputfile
*NIX - You find one way of doing something and after you've done it
find out there are another 15 ways to perform the same task.
Windows - You find 16 ways of performing the same task and then find
out that none of those actually perform the task and you have to find
another way.
:-)
Aussie
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2 -- QDPGP 2.60
Comment: Please verify this signature. http://www.pgpi.com
iQA/AwUBOTVjZZZb9oayhFBBEQK7WwCfZOUflyp+FTiY6R9rUqJDGtwUOe4AmgJD
tIv8elHeo8OW266xy7FC/Eps
=dey5
-----END PGP SIGNATURE-----
PGP Key Block available at:
http://aussie.mine.nu/aussie/pgp_key.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