in reply to Re: Search and replace within a filein thread Search and replace within a file
$perl -e 's/old/new/ -pi.backup /etc/hosts [download]