SatisfyMyStruggles has asked for the wisdom of the Perl Monks concerning the following question:
I need the following sed line escape in a perl script. From the commandline of bash, it works
For Example, need this sed line escape
sed -n -e /log-passed/,/log-end/p' /var/log/app1/$fileMy attempt
'sed -n -e \'\/log-passed\/\,\/log-end\/p\' /var/log/app1/$file'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Quating sed string in perl
by choroba (Cardinal) on Jun 05, 2013 at 13:57 UTC | |
by hdb (Monsignor) on Jun 05, 2013 at 14:05 UTC | |
by choroba (Cardinal) on Jun 05, 2013 at 14:06 UTC | |
by SatisfyMyStruggles (Initiate) on Jun 05, 2013 at 14:02 UTC | |
by SatisfyMyStruggles (Initiate) on Jun 05, 2013 at 14:14 UTC | |
by SatisfyMyStruggles (Initiate) on Jun 05, 2013 at 14:08 UTC | |
|
Re: Quating sed string in perl
by Corion (Patriarch) on Jun 05, 2013 at 13:52 UTC | |
|
Re: Quating sed string in perl
by Anonymous Monk on Jun 05, 2013 at 13:54 UTC |