in reply to Re: perl one liner to replace matching string
in thread perl one liner to replace matching string
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?
All is well. I learn by answering your questions...
In Section
Seekers of Perl Wisdom