in reply to last $n lines that match a criteria
my @lines = split /\n/, `grep criteria file.foo | tail -$i`; [download]