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'In reply to Quating sed string in perl by SatisfyMyStruggles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |