Archive for March, 2007

quickly find an replace in file using ruby

ruby -i -p -e 'gsub! /old_stuff/, "new_stuff"' your_file