From http://stackoverflow.com/questions/471183/linux-command-line-global-search-and-replace