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...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: perl one liner to replace matching string
by Athanasius (Archbishop) on Jun 10, 2018 at 08:28 UTC | |
by Veltro (Hermit) on Jun 10, 2018 at 20:06 UTC | |
by vinoth.ree (Monsignor) on Jun 10, 2018 at 16:58 UTC | |
by AnomalousMonk (Archbishop) on Jun 10, 2018 at 18:44 UTC |
In Section
Seekers of Perl Wisdom