On Fri, Oct 31, 2003 at 06:15:36PM +1300, Paul William wrote:

> What command line utilities can I use to replace text within a file
> ie.  replace linux with GNU/Linux within a file. I do not want to
> create a new file.

Both Perl and GNU sed >3.95 support in-place editing with the '-i'
parameter.

$ sed -ie 's/linux/GNU\/Linux/g' file_to_edit

$ perl -pi -e 's{linux}{GNU/Linux}g' file_to_edit

Cheers,
-mjg
-- 
Matthew Gregan                     |/
                                  /|                [EMAIL PROTECTED]

Reply via email to