The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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




Thread: sed
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 08-29-2008
coolkid coolkid is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 69
danmero
Thanks for the code man..its working...but only at the prompt..its not really changing the file...so

I tried awk 'NR==11{print "new line"}1' file>file2.

But using "file2" is not a feasible solution for me..The change has to happen in "file" itself.

do u know a solution that doesnt use file2.Please let me know.



--Cal