Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Is this a bash script?

Is this a bash script?
Thread Tools
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Jan 1, 2003, 04:07 PM
 
Obviously, not the whole script:

for i in `seq -w 1 999`; do wget -t 0

thanks,
kman
     
Fresh-Faced Recruit
Join Date: Jan 2003
Location: GekoLand
Status: Offline
Reply With Quote
Jan 1, 2003, 06:13 PM
 
Originally posted by kman42:
Obviously, not the whole script:

for i in `seq -w 1 999`; do wget -t 0

thanks,
kman
It is not properly a script, it is just a looped concat of commands. as far as i know the correct expressione for bash should be:

for i in `command` ; do command [passing $i as an argument] ; done
malbicho --> +mal +bichos
www.ppcnerds.org :)
     
kman42  (op)
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Jan 1, 2003, 07:35 PM
 
Originally posted by malbicho:
It is not properly a script, it is just a looped concat of commands. as far as i know the correct expressione for bash should be:

for i in `command` ; do command [passing $i as an argument] ; done
yeah. The rest of it contains an html address and then the done statement.

Isn't a looped concat of commands put into a file a script? I'm not trying to start a semantic argument or anything, just curious if there's a difference. I'm new to the whole *nix scripting world and am anxiously awaiting the next installment of the unix tutorial over at osxfaq.com.

kman
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Badfort
Status: Offline
Reply With Quote
Jan 1, 2003, 08:10 PM
 
for i in `seq -w 1 999`; do wget -t 0 http://theshoebox.org/jiglet/everyday01/images/$i.jpg; done


Look familiar kman???

Busted!





FWIW you should be able to do what you want using curl at the comand line. 'man curl' and look for sequences e.g [001-999]
You see, my friends, pirates are the key. - thalo
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:52 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2