[Ilugc] Sed should affect the input file

  • From: ramana_muthu@xxxxxxxxxxx (Muthukumar)
  • Date: Fri Mar 11 15:02:25 2005

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?

Use Tusar Nayak's response to me as,

    use -i option for inline replacement.
    sed -i 's/<old>/<new>/g' input_file

It is also working perfectly as perl -pi.

PS: Tusar Nayak, please send reponse to ALL :-)

HTH.

Thanks,
-Muthukumar. 


________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

Other related posts: