I am migrating a site in PHP and someone has hardcoded all the links into a function call display image('http://whatever.com/images/xyz.jpg').
I can easily use text mate to convert all of these to http://whatever.com/images/xyz.jpg.
But what I also need to do is bring the images down with it so for example wget -i images.txt
.
But I need to write a bash script to compile images.txt with all the links to save me doing this manually because there are a lot!
Any help you can give on this is greatly appreciated.