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: nschum on Jun 18, '10 10:38:34AM
Looks powerful, but I usually just do:
find dir/ -type f -exec sed -i'' -e s/old/new/g "{}" \;
A little risky, maybe, but all my files are under version control (which takes care of the diffing, as well).

[ Reply to This | # ]