#!/bin/sh #================================================== # ugcnam=0 while [ $ugcnam -ne 500000 ] do if [ $ugcnam -lt 10 ] then wget http://arecibo.tc.cornell.edu/hiarchive/alfalfa/spectraASCII/A00000${ugcnam}.txt else if [ $ugcnam -lt 100 ] then wget http://arecibo.tc.cornell.edu/hiarchive/alfalfa/spectraASCII/A0000${ugcnam}.txt else if [ $ugcnam -lt 1000 ] then wget http://arecibo.tc.cornell.edu/hiarchive/alfalfa/spectraASCII/A000${ugcnam}.txt else if [ $ugcnam -lt 10000 ] then wget http://arecibo.tc.cornell.edu/hiarchive/alfalfa/spectraASCII/A00${ugcnam}.txt else if [ $ugcnam -lt 100000 ] then wget http://arecibo.tc.cornell.edu/hiarchive/alfalfa/spectraASCII/A0${ugcnam}.txt else wget http://arecibo.tc.cornell.edu/hiarchive/alfalfa/spectraASCII/A${ugcnam}.txt fi fi fi fi fi ugcnam=$(( $ugcnam + 1 )) done #==================================================