In-place file editing with sed

Posted on Wed 17 March 2010 in misc

This took me a while to work out why this would not work. When using the -i option with sed you need to specify a backup extension to be used (at least on my 10.5 mac you do!)


sed -i '' -e 's/something/something else/g' -e 's/again/again again/g' \*.py