in reply to Quating sed string in perl
system "sed -n -e '/log-passed/,/log-end/p' /var/log/app1/$file"; # Pe +rl variable
Update: It is still a mystery why you cannot let Perl do all the work:
open my $FH, '<', "/var/log/app1/$file" or die $!; while (<$FH>) { print if /log-passed/ .. /log-end/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Quating sed string in perl
by hdb (Monsignor) on Jun 05, 2013 at 14:05 UTC | |
by choroba (Cardinal) on Jun 05, 2013 at 14:06 UTC | |
|
Re^2: Quating sed string in perl
by SatisfyMyStruggles (Initiate) on Jun 05, 2013 at 14:02 UTC | |
|
Re^2: Quating sed string in perl
by SatisfyMyStruggles (Initiate) on Jun 05, 2013 at 14:14 UTC | |
|
Re^2: Quating sed string in perl
by SatisfyMyStruggles (Initiate) on Jun 05, 2013 at 14:08 UTC |