Subscribeif something_is_true then die;
die if something_is_true;perl -pi -e 's/foo/bar/g' for searching, but then I discovered that gnu sed has has an "in-place" operator. So now I usually use gnused -i.bak -e 's/foo/bar/g'. A long time ago, I benchmarked gnused at around 3 times faster than perl for extracting ip numbers from a huge log file. svn revert has saved my ass more than once.You are not logged in, either login or create an account to post comments
posted by pompomtom at 11:46 PM on April 12, 2007