Download files using Shell script
I want to download a number of files which are as follows: http://example.com/directory/file1.txt http://example.com/directory/file2.txt http://example.com/directory/file3.txt http://example.com/directory/file4.txt . . http://example.com/directory/file199.txt http://example.com/directory/file200.txt Can anyone help me with it using shell scripting? Here is what I'm using but it is downloading only the first file. for i in {1..200} do exec wget http://example.com/directory/file$i.txt; done
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.