[Ilugc] Sed should affect the input file

  • From: binand@xxxxxxxxx (Binand Sethumadhavan)
  • Date: Fri Mar 11 18:01:34 2005

On Fri, 11 Mar 2005 15:01:58 +0530, Muthukumar <ramana_muthu@xxxxxxxxxxx> wrote:

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

It is also working perfectly as perl -pi.

Kernighan & Pike has a general-purpose script that can be used to do
this for any filter; not just sed.

Binand

Other related posts: