script for changing contents of input file

January 22, 2011 at 23:50:27
Specs: soaris
example:
list of fields need to change in p1 file as below:

Form_in_mgw_name
Form_out_mdw_name

now. i need to search these parten into input file and replace with smething like

int Form_in_mgw_name to bcd Form_in_mgw_name

I'm new for unix script. please help me

Thank you


See More: script for changing contents of input file

Report •

#1
January 23, 2011 at 13:57:31

One way is to use the sed command's substitute ability:

sed 's/Form_in_mgw_name/bcd Form_in_mgm_name/g' p1 > p1new


Report •
Related Solutions


Ask Question