I tried the below perl one liner to replace the "@Filetyp :" as "@Filetyp :c"
my $ext='c'; qx("perl -p -i -e \"s/(\@Filetyp\\s*?:)/\\1$ext/\" /path/test.c");
I am already doing it.Could you pls try like above perl one liner to replace the string?
In reply to Re^2: perl one liner to replace matching string
by vinoth.ree
in thread perl one liner to replace matching string
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |