I posted this question here on purpose, although - for my case - it is laTex related. The problem itself is generic though.
I've got several *.tex-source files containing references to images, e.g. image1.jpg and image2.png. I want to search all source file for a specified set of extensions (in this case jpg and png) and replace them with their pdf counterparts. Consequently I want to end up with the references image1.pdf and image2.pdf. To complicate the problem, I've got a list of 20 files (image3.jpg, image 4.png etc.) that I don't want changed.
Is there a simple solution out there (sed-based or any tool suggestions?) which might help? I'm no regular expressions guru, though. ;)
*.texfiles?