sed: group capturing
Posted
by Michael
on Stack Overflow
See other posts from Stack Overflow
or by Michael
Published on 2010-05-06T00:04:41Z
Indexed on
2010/05/06
0:08 UTC
Read the original article
Hit count: 128
Is there any way to tell sed to output only captured groups? for example given by input:
This is a sample 123 text and some 987 numbers
and pattern
/([\d]+)/
I could get only 123 and 987 output in the way formatted by back references perhaps?
© Stack Overflow or respective owner