in reply to Parse the text file output and delete files
Untested :). Also assumes case sensitive, in contradiction to your spec AND your code.
#!/usr/bin/perl use strict; $| = 1; $/ = 'ERROR at '; while(<>) { /ERROR at / && /[\0-\xff]*^executing: \@(.+)/m and (unlink $1 or warn "$1 $!"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parse the text file output and delete files
by Anonymous Monk on Jul 20, 2015 at 18:25 UTC | |
|
Re^2: Parse the text file output and delete files
by Gaurav99 (Initiate) on Jul 20, 2015 at 20:13 UTC | |
by Anonymous Monk on Jul 20, 2015 at 20:27 UTC | |
by Anonymous Monk on Jul 20, 2015 at 23:44 UTC | |
|
Re^2: Parse the text file output and delete files
by Anonymous Monk on Jul 20, 2015 at 18:12 UTC |