If you are only looking for the digits, try
perl -ne 'print "$1\n" if /\[TRL(\d+)\]/;' <filename>
In reply to Re: extract trailer count one liner
by hdb
in thread extract trailer count one liner
by dirtdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |