I am looking for a way to create a script that can do a search and replace on all html files in a directory and all subdirectories.
I have found out how to do it in all the files in a directory, but not how to include the subdirectories.
Any help would be appreciated. Here is what I have to replace one string with another on all .htm files in a directory, the question really is how do I make it include directories under the current directory?
perl -i -pe 's/replacethis/withthat/g' *.htm
