in reply to extract trailer count one liner

If you are only looking for the digits, try

perl -ne 'print "$1\n" if /\[TRL(\d+)\]/;' <filename>