SatisfyMyStruggles has asked for the wisdom of the Perl Monks concerning the following question:
I get the following error message: Error: can't read /var/log/log20098Message's no file or directory I think the problem has to do with the apostrophe s but unsure how to fix it after attempting to.. In this case the $file variable contains log20098Message's
system "sed -n -e '/log-passed/,/log-end/p' /var/log/app1/$file";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Escape the apostrophe in sed command in perl script
by roboticus (Chancellor) on Jun 06, 2013 at 00:20 UTC | |
|
Re: Escape the apostrophe in sed command in perl script
by rjt (Curate) on Jun 06, 2013 at 00:41 UTC |