DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Shell Script For Find And Replace
Here's a little shell snippet for finding and replacing text in multiple files:
for fl in *.txt; do mv $fl $fl.old sed 's/find/replace/g' $fl.old > $fl done






Comments
Snippets Manager replied on Sun, 2010/02/28 - 6:41pm
Snippets Manager replied on Mon, 2012/05/07 - 2:11pm