[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 iBash



On 15 Mar 2004 21:01:33 +0100
Peter Makholm <sslug@sslug> wrote:

> Anders Misfeldt <sslug@sslug> writes:
> 
> > > files=(`ls`)
> > > echo ${files[$RANDOM % ${#files}]}
> > 
> > Dette giver altså nogen gange en tom streng :-( Ikke så fedt. 
> 
> Det fatter jeg ikke. Umidelbart kan jeg reproducere det, jeg får altid
> passende filnavne. Har du nogle filer med underlige navne?
> 

Overhovedet ikke. Der er hverken _,-,/,\,% eller andre tegn i navnene. Jeg tror, jeg bruger den  

ls | perl -e '@a=<>;print sslug@sslug'

i stedet.


Anders


 
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] *