Inplace substitutions
1 2 ruby -p -i -e '$_.gsub!("old value", "new value")' *.txt
DZone Snippets > remvee > unix
12979 users tagging and storing useful source code snippets
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
Remco van 't Veer http://blog.remvee.net
1 2 ruby -p -i -e '$_.gsub!("old value", "new value")' *.txt