← Back to team overview

sslug-teknik team mailing list archive

Re: Længste filnavn i et underbibliotek

 

On Thu, 28 Feb 2002, Peter Makholm wrote:

> Umidelbart tror jeg jeg ville gøre noget ala følgende:
> 
> $ ... | perl -e '@files = sort { length $a <=> length $b } <>; print @files[0]'
> 
> Om man så får det første, sidste eller et tilfældigt filnavn er jeg
> ikke helt sikker på.

Jeg tror også han ville have dem allesammen, men det er vel bare @files;

Meget smart.

Mads

-- 
Mads Bondo Dydensborg.                               madsdyd@xxxxxxxxxxxx
The fact is that far more crime and child abuse has been committed by
zealots in the name of God, Jesus and Mohammed than has ever been committed
in the name of Satan. Many people don't like that statement, but few can
argue with it.
- Kenneth V. Lanning, Supervisory Special Agent at the Behavioral Science
Institution and Research Unit of the FBI Academy (from Carl Sagan's, The
Demon-Haunted World)



References