![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| egrep | DNAx86 | Shell Programming and Scripting | 7 | 01-18-2008 05:59 AM |
| Egrep cheat sheet anywhere? Looking for meaning of egrep -c | leelm | UNIX for Dummies Questions & Answers | 2 | 01-11-2008 12:37 PM |
| egrep syntax question | DKNUCKLES | Shell Programming and Scripting | 1 | 11-18-2007 01:46 PM |
| Egrep Help | FuzzyNips | UNIX for Dummies Questions & Answers | 2 | 11-10-2004 01:25 PM |
| egrep -f | tine | UNIX for Dummies Questions & Answers | 2 | 06-25-2003 07:28 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
For egrep the limit on the number of allowed matches is expressed {lower,upper}
Code:
egrep '^a{1,6}$'
|
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
question on egrep
Hi Ranj,
Your solution works for egrep '^a(a)+$' But can you tell me how to interpret this please? How does this know it needs to select 2.. upto 6 a's ? Thanks Rohit |
|
#10
|
|||
|
|||
|
It doesn't limit the search to a maximum of 6 a's.
Example test with seven a's: Code:
/home/jmcnama > echo "aaaaaaa" | egrep '^a(a)+$' aaaaaaa |
|
#11
|
|||
|
|||
|
question on egrep
Hi Jim,
Thanks for your response but my requirement was really limiting the selection between 2 and 6 a's. (or for that matter a user specified number). Any clues ? Rohit |
|||
| Google The UNIX and Linux Forums |