[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: [TEKNIK] Bash for-loop; skriv tæller med for anstillede nuller?



Michael Schmidt wrote:
Hej NG,
Jeg har lige brugt et bash for-loop:

]$ for i in `seq 1 126`; do wget http://www.example.org/contenpages/article$i.html; done

-og er mega stolt over at have løst opaven selv :)

til at lade wget hente en række nummerede filer (kunne ikke få wget til at acceptere jokertegn) Dog stødte jeg på en gruppe af filer der var nummereret med foranstillede nuller (0) der så _ikke_ blev medtaget af min -nu knap så- smarte løsning.

Er der en nifty måde at tælle med foranstillede nuller?

Ikke fordi det betyder noget for løsning af opgaven, men hvilken webside er der tale om?.
www.example.org/contenpages eller www.example.org/contentpages findes ikke.

--
Med venlig hilsen

Jørgen Heesche
mailto:sslug@sslug


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-04-01, 02:01 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] *