This will also strip off the unwanted alpha chars.perl -ne 'print "$1\n" if /\[TRL(\d+)\]/;' <filename>
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: extract trailer count one liner
by kennethk
in thread extract trailer count one liner
by dirtdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |