Not sure how much of the link you want, however, if I have a file named 'links' containing the following:
Code:
sasha@reactor: cat links
http://www.some-site.com/blah/blarh/image-cs0.gif
http://www.some-site.com/blah/blarh/image-cs0.gif
http://www.some-site.com/blab/blarg/image-cs1.gif
http://www.some-site.com/blah/blarh/image-cs0.gif
http://www.some-site.com/blah/blarh/image-cs0.gif
http://www.someothersite.com/blah/blarh/image-cs1.gif
and I want the links described by you, then the following works:
Code:
sasha@reactor: grep -o -e 'http://.*cs0\.gif' links
http://www.some-site.com/blah/blarh/image-cs0.gif
http://www.some-site.com/blah/blarh/image-cs0.gif
http://www.some-site.com/blah/blarh/image-cs0.gif
http://www.some-site.com/blah/blarh/image-cs0.gif
sasha@reactor:
If this isn't right, please show an
exact link you might come across, and
exactly what you want outputted.
Cheers!