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
In reply to Regular Expression by cbolden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |