[SLUG] grep sed

Stephen O'Neill soneill84 at yahoo.co.uk
Mon Feb 27 16:06:40 GMT 2006


john at johnallsopp.co.uk wrote:
> grep -l "+44 123 4567" *.php | xargs sed 's/+44 123 4567/+44 765
> 4321/g' | tee out.txt

"man sed" says:

      -i[SUFFIX], --in-place[=SUFFIX]

             edit files in place (makes backup if extension supplied)

Does that help?

Steve O

		
___________________________________________________________ 
Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry




More information about the Scarborough mailing list