Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Search-replace recursively in files and folders' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Search-replace recursively in files and folders
Authored by: valhowells on Jun 29, '10 06:09:07AM

to change blue to green in all files *.xml

for i in $( ls *.xml ); do
sed -e 's/blue/green/' $i > x
mv -f x $i

pretty simple. this can even be done on the command line.

[ Reply to This | # ]