The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-01-2009
pankajd pankajd is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 19
shell script to change ip addess to 0.0.0.0 from 172.29.1.1 to 17.29.2.245

hello,
i have a file in which lines like this are to ve replaced with lines like

{172.29.1.55 mn55.mgmt.yuva.param # }should change to
{0.0.0.0 mn55.mgmt.yuva.param #noconn
Fallowing are the lines example lines are in a file in the same sequence to be converted :
172.29.1.49 mn49.mgmt.yuva.param #cpu
172.29.1.82 mn82.mgmt.yuva.param #
172.29.1.100 mn100.mgmt.yuva.param #
172.29.2.17 mn271.mgmt.yuva.param #
172.29.2.24 mn278.mgmt.yuva.param #