The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-19-2006
rohitv rohitv is offline
Registered User
 

Join Date: May 2006
Posts: 7
question on egrep

Hi
I am trying to use this command:
egrep '^a{2,6}$' testexpr4D

to retreive lines with 2,3,4,5, or 6 a's in a file .
The file testexpr4D has entries like:
a
aa
aaa
aaaa
aaaaa
aaaaaa
123456
ABCDEF

I was expecting to see 5 lines in the output but nothing happens.
Can anyone help please?
Thanks
Rohit
Reply With Quote
Forum Sponsor