Hi,
I am trying to switch all occurences of the word "OLD" to "NEW" using either of the following simple commands, but my FILE.TXT does not change. What am I doing wrong? Neither of these commands seem to work. They do create a FILE.TXT.orig though.
>perl -i.orig -pe 's/OLD/NEW/e' FILE.TXT
>perl -i.orig -pe 's{\bOLD\b}{NEW}' FILE.TXT
Thanks.
David
I am trying to switch all occurences of the word "OLD" to "NEW" using either of the following simple commands, but my FILE.TXT does not change. What am I doing wrong? Neither of these commands seem to work. They do create a FILE.TXT.orig though.
>perl -i.orig -pe 's/OLD/NEW/e' FILE.TXT
>perl -i.orig -pe 's{\bOLD\b}{NEW}' FILE.TXT
Thanks.
David