Follow the advice suggested by WW and show us some example of how your file names look like. Perl is excellent in regular expression and therefore I guess your question is relevant to this forum although the solution you opted for is not relevant to the scope of Perl.
Untested code but perhaps you can expand from there:
ls /home/cvsuser/cvsroot/ot/ | perl -lane 'if(/[0-9]{6}/){print}'
In reply to Re: Regular Expression
by Anonymous Monk
in thread Regular Expression
by cbolden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |