Timeline for How can I output only captured groups with sed?
Current License: CC BY-SA 2.5
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 18, 2012 at 22:02 | comment | added | Dennis Williamson |
@RandomInsano: In order to use the + , you would need to escape it or use the -r option (-E for OS X). You can also use \{1,\} (or -r or -E without the escaping).
|
|
Apr 12, 2012 at 17:31 | comment | added | RandomInsano | Just a note, but the plus sign '+' means 'one or more' which would remove the need for repeating yourself in the patterns. So, "[0-9][0-9]*" would become "[0-9]+" | |
May 6, 2010 at 6:22 | history | edited | Joseph Quinsey | CC BY-SA 2.5 |
added 55 characters in body
|
May 6, 2010 at 5:59 | comment | added | Pablo | @Joseph: thanks, however, based on my task I feel like grep is more natural, like ghostdog74 suggested. Just need to figure out how to make grep output the capture groups only, not the whole match. | |
May 6, 2010 at 5:30 | history | answered | Joseph Quinsey | CC BY-SA 2.5 |