in reply to Fetching unique owner name
update: Actually tested the code and refined it a bit...
update2: Crafted a better perl solution, not calling perl in Perl...
Couldn't you just do something like:
IIRC, uniq is a standard unix command, which is also available under Solaris 7.my ( @temp, %authors ); @temp = sort map { my @b=split; $b[2]; } `ls -l`; foreach ( @temp ) { $authors{$}=1 if not $authors{$_} and length $_; } print "$_\n" for keys %authors;'
Greets,
-- JaWi
"A chicken is an egg's way of producing more eggs."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Fetching unique owner name
by Anonymous Monk on Dec 03, 2002 at 14:52 UTC | |
by JaWi (Hermit) on Dec 03, 2002 at 17:14 UTC | |
by Anonymous Monk on Dec 03, 2002 at 18:55 UTC | |
by JaWi (Hermit) on Dec 03, 2002 at 19:08 UTC | |
by Anonymous Monk on Dec 03, 2002 at 20:29 UTC |