I need a shell script to find html files, identify a word in the file and replace dummy text with that word
Posted on 2007-04-04
I have several paralell directories, each with a file named mes.html
In each of these files is one of several standard words, like pure, planet or factor. After each standard word is a number, like 12 or 08.
Based on which word is in the mes.html file, I need to replace the word thumb.jpg with a the standard word in the file, like pure 08.jpg. Even better would be no space in the replacement text.