Displaying only data matching a pattern?
Michael ODonnell
michael.odonnell at comcast.net
Mon Feb 2 11:58:32 EST 2009
Ben wrote:
> sed s/.*:\([[:xdigit:]]*\)\\.*/\1/
That looks good to me, though I assume he meant to show that
expression in single quotes. Also, I can't remember if those
character class notations count as Extended Regular Expressions
but, if so, some versions of sed might want something like -r
on the command line to enable their use.
More information about the gnhlug-discuss
mailing list