This assumes you don't have files ending in '==> foo <=='.tail -1 ... list of file ... |\ perl -nE 'given($_) {when (/==> (.*) <==/) {$file = $1} when (/^\s*$/} + {;} when {/Normal/} default {unlink $file or die}'
In reply to Re: Efficient deletion of files / shell interaction
by JavaFan
in thread Efficient deletion of files / shell interaction
by madd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |