TonyNY has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm trying to replace strings in a text file but cannot get it to work using the following code:
system("sed -i -e 's/The action failed./failed_build/g' $lookuptxtfile +");
Any help modifying this code or using a better way to accomplish this would be greatly appreciated.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Replace strings in text file
by choroba (Cardinal) on Sep 20, 2018 at 16:48 UTC | |
Re: Replace strings in text file
by tybalt89 (Monsignor) on Sep 20, 2018 at 16:53 UTC | |
Re: Replace strings in text file
by tybalt89 (Monsignor) on Sep 21, 2018 at 09:26 UTC | |
Re: Replace strings in text file
by haukex (Archbishop) on Sep 23, 2018 at 08:03 UTC | |
Re: Replace strings in text file
by thanos1983 (Parson) on Sep 21, 2018 at 08:11 UTC | |
by choroba (Cardinal) on Sep 21, 2018 at 09:05 UTC | |
Re: Replace strings in text file
by pwagyi (Monk) on Sep 24, 2018 at 03:22 UTC |
Back to
Seekers of Perl Wisdom