I've seen this question posed a few times with shell scripting, but have not found anything with csh. I am trying to download multiple txt files from a source using wget. These are archived tornado warning files; however, the files only exist if there were tornado warnings issued that day. I'm using something like...
set FILE = `whatever/YYYYMMDD.txt`
if (-e $FILE)
wget $FILE
else
continue
I know that the script as is will just check for the file in my directory, which obviously won't have it. Is there a way to check if a file exists online before attempting to download it? Otherwise, how could I do this (guessing it would deal with ssh)?
Thanks for your help.