I'd like to print only few groups from text matching a regex. How can I do that in the Linux command line?
What other tools for text processing are there in Linux?
|
I'd like to print only few groups from text matching a regex. How can I do that in the Linux command line? What other tools for text processing are there in Linux?
| ||||
|
feedback
|
|
Two programs I use frequently for this purpose are
The | ||||
|
feedback
|
|
One way you might do it is through lang consoles, such as Ruby or Node.js. Both have access to filesystem and a host of things you can do with it. As I come from the front-end web world, I personally find Node.js's syntax to be easy to use. | |||
|
feedback
|
grep -o– glenn jackman Sep 23 '11 at 12:01