I think the easiest way would be to create one simple script to replace a string. Something like:
Code:
#!/bin/bash
if [ $# -lt 3 ]
then
echo "usage: replace <filename> <searchstring> <replacestring>"
exit
fi
sed -e "s/$2/$3/g" $1 > $1.~bak
mv $1.~bak $1
And then run one command to search through a directory and replace strings using the script above. Something like:
find . -name "*.txt" -exec \replace {} "some string" "something" \;
It's just a quick script I put together so I can't guarantee that it will work in all cases. But it should work for most files. If it's important data you are gonna be running it on you might want to change the mv into a cp to make sure you still have the backup file in case it goes wrong.