[YLUG] How do to substition in a file with sed or similar

Arthur Clune ajc22 at york.ac.uk
Fri Oct 27 11:54:55 BST 2006


On 27 Oct 2006, at 11:47, Robert Hulme wrote:

> Or is there a magic switch or should I be using something other  
> than sed?

perl -p -i -e 's/foo/bar' myfile

-- 
Dr. A. Clune, Systems Security Advisor
The  Computing Service,  University of York
ajc22 at york.ac.uk   01904 433129





More information about the York mailing list