BreadCrumbs: Bash Scripts
Bash Scripts
From Luke Jackson
Revision as of 22:19, 28 June 2007; Ljackson (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
Simple Wget Loop
alpha=( aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv ww xx yy zz ) alpha_count=${#alpha[*]} x=0 while [ "$x" -lt "$alpha_count" ] do # List all the elements in the array. wget http://german.about.com/library/media/sound/${alpha[$x]}.wav let "x = $x + 1" done