cbolden has asked for the wisdom of the Perl Monks concerning the following question:
I've created a regex to filter files of type (.php) from a directory while parsing the file to find an area number which is a six digit integer with no delimiter. I also want to save the results in a .txt file. The following script doesn't provide the desired result. Any assistance, much appreciated.
egrep -r '\<[0-9]{6}\>' /home/cvsuser/cvsroot/ot/ | grep \.php > otRes +ults
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular Expression
by ww (Archbishop) on Oct 28, 2014 at 16:07 UTC | |
|
Re: Regular Expression
by Anonymous Monk on Oct 28, 2014 at 21:46 UTC |