Timeline for Grep - how to output only the content of a capturing group
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 31, 2023 at 8:25 | comment | added | Jotne |
@SlippD.Thompson It output everything before the , if it has hello with a number and please match me. You can use awk -F, '/, please match me/ {print $1}' file to get anything in front of "please match me"
|
|
Mar 30, 2023 at 22:20 | comment | added | Slipp D. Thompson | I'm not sure I understand how to use this— I don't see a capturing group in your regex. | |
Oct 14, 2019 at 16:21 | history | answered | Jotne | CC BY-SA 4.0 |