[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] Vælg tilfældig fil i Bash



On 15 Mar 2004 20:57:17 +0100
Peter Makholm <sslug@sslug> wrote:

> Anders Misfeldt <sslug@sslug> writes:
> 
> > > find -type f | perl -e '@a=<>;print sslug@sslug'
> > 
> > Hm, dette giver (fx):
> > 
> > ./mars.jpg
> > 
> > Hvorfor lige ./ foran?
> 
> Fordi find skriver filnavnene sådan. Følgende vil også virke (for
> passende definitioner af virke):
> 
> ls | perl -e '@a=<>;print sslug@sslug'

Enig

find -type f har dog den feature(hvis man har brug for det)
at den tager filer i underkatalogerne med.   


> 
> -- 
>  Peter Makholm     |              I have no caps-lock but I must scream...
>  sslug@sslug |                                               -- Greg
>  http://hacking.dk |                                                      
> 


-- 
Poul-Erik Andreasen

http://www.linux-service.dk
http://www.pea.dk 


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:43 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *