[clug] Circumflex

Bryan Kilgallin (iiNet) kilgallin at iinet.net.au
Sat Aug 19 12:50:09 UTC 2017


I have been trying out egrep on an old text file tabulating American 
bulletin boards such as the following.

{
/ Number / Name           /Type  /Baud rate /Type of BBS

---------------------------------------------------------------

221-0774 /CCIS Hopewell   / IBM  / 300/1200 /General BBS
}

So I have been applying search terms in a RegEx document supplied by 
Scott. Therein I read
	"\d	Any Digit", and also
	"[0-9]	Numbers 0 to 9".

I can get one of those phone-number records by searching thus.
	egrep '^[0-9]'
But the following selects nothing!
	egrep '^\d'
What went wrong?
-- 
www.netspeed.com.au/bryan/



More information about the linux mailing list