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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-22-2007
vijaya2006 vijaya2006 is offline
Registered User
 

Join Date: Feb 2006
Posts: 22
Arrow making the changes permanent in a file

Hi Friends.
I have a file called install.data which has fields like :

XXXXX
ACVCGFFTFY UAHIUH OI
CONNECTION=tape/11/
LOCATAION=08-90-89
SIZE=90

I had to change the values of some of these variables. So i did :
grep "SIZE" instal.data | sed 's/[0-9]*/00/' ...this is working fine on command line but i want to make this change permanent in the file without redirecting it to
other file .I dont want to make the changes in the Vi editor . I need to use some command . Can you help in this ???

Thanks,
Vijayaa
Reply With Quote
Remove advertisements
!!
!! Forum Sponsor