[Ilugc] Sed should affect the input file

  • From: raja.mallik@xxxxxxxxxxx (Raja Mallik)
  • Date: Fri Mar 11 14:21:14 2005

sed displays all contents of the file from its own internal buffer on
the console.with its impact on the buffer not on the input file..

simple trick:
sed 's/<old>/<new>/g' input_file > tmp; mv tmp input_file

-raja

On Fri, 2005-03-11 at 14:01, Anthony Ashok wrote:

What is the option should I need to set, so that the replacement string 
should affect the Input file

Example:
        sed 's/<old>/<new>/g' input_file
Then If I open input_file the file the effect should take place in the 
input file.

Is it possible to do that?


with warm regards,
Anthony Jesu Ashok S Ext : 7257

______________________________________________________________________
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Other related posts: