4
1
I tried to find the actual practical use of ? i.e. for e.g. "egrep a? filename" but was not able to find any.. It returns all results..
So, Please help me out wherein i could know the actual use of egrep ? command..
If i use 'a?', it returns all result i.e. strings or lines. which has 0 a's, 1 a's, 2 a's and so on.. i.e. i am not able to find the use of the same..
Thanks
I understood it.. Thanks a lot.. Also what does 'egrep a? filename' will do actually.. If you can put it in words.. – None – 2009-08-15T16:28:44.483
3@RB:
egrep a? filename
will match every line. It's not useful on its own. – RichieHindle – 2009-08-15T16:48:59.4602Regular GNU grep (without the -E) supports the
?
but you must escape it.echo "color" | grep "colou\?r"
Should return
color
. – Matt Kneiser – 2014-01-21T19:53:36.890