in reply to Efficient deletion of files / shell interaction
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}'
|
|---|