[KLUG Members] write changes from sed to a file

Bruce Smith members@kalamazoolinux.org
Tue, 07 Aug 2001 12:32:14 -0400


> What is the correct syntax to use the "w" feature of sed to write the changes to a file.
> I tried this without avail ( I want changes to write to "sed_file"):
> 
> sed  -w sed_file  's/search_string/replace_string/g'   file_name_to_read


  sed 's/search_string/replace_string/g' file_name_to_read > sed_file


--------------------------------------------
Bruce Smith                bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan  49093  USA
http://www.armstrong-intl.com/
--------------------------------------------