Results 1 to 2 of 2
Hi....
I Am wgetting List Of URLs From A Text File, Using
wget -i download.txt
I Want To Rename Each File As Its Downloaded..
Ordinarily,
wget --output-document=1.jpg http:images2.example.com/file1.jpg
Will Do ...
- 07-13-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 3
wget - Rename As Downloaded...
Hi....
I Am wgetting List Of URLs From A Text File, Using
wget -i download.txt
I Want To Rename Each File As Its Downloaded..
Ordinarily,
wget --output-document=1.jpg http:images2.example.com/file1.jpg
Will Do The Job, It Will Rename file1.jpg to 1.jpg as its downloaded..
But How I Do It When List Of URLs Are Feed Via A File....
If I Construct My download.txt Like This
--output-document=1.jpg http:images2.example.com/file1.jpg
--output-document=2.jpg http:images2.example.com/file2.jpg
--output-document=3.jpg http:images2.example.com/file3.jpg
And I Run
wget -i download.txt
Then I Get This Error.
Unsupported scheme
No URLs found in download.txt
So, The Question Is How Should I Construct My download.txt File So That Each File Is Renamed As Its Downloaded,
Thanks
P.S. I Had Purposely Typed http: And Skipped // in the links Coz Forums Will Not Let Me Have Links Until I Have 15 Posts
- 07-14-2010 #2Just Joined!
- Join Date
- May 2008
- Location
- Bangalore, India
- Posts
- 24
write shell script which reads the download.txt; and runs loop for each url, with wget and put your options for download and rename.


Reply With Quote