This is really confusing me. I can wget -r ftp to download all files in a folder, but because of a server truncating at 2000 records its not possible to download all of the 4000 files. I can access the files via wget http. although there is no folder list that gives me all the file names, however, I know that the files are named, 1 - 4000.txt. how would I download all of the files, starting at 1 and ending at 4000, when all the extensions are the same. would this be a bash script that generates a list of the files? someone please help me as i need to move all my files from my old server onto my new server before my old server gets closed down. warm regards, Shaun
I need to generate a list of all of the file locations 1-4000 and then use wget to download each one after the previous one has completed. could anyone tell me how to do this? thanks, Shaun
#!/bin/bash for i in `seq 1 4000`; do echo "Gonna fetch http://url.com/path/$i.txt" wget http://url.com/path/$i.txt 2>1 1>/dev/null done Code (markup): replace http://url.com/path/$i.txt with the approprite url ...
Ouch, I had thought of the same shell script only to find it has been done while replying! Nice it worked!