Re:Use ack instead of grep to parse text files
by wonderzombie on Monday December 24, 2012 @05:49PM
(#4964404)
In my opinion, yes, it is. grep is fast and versatile.
Shell tools in general are relatively simple or at least specialized, and they're built to be composed in novel/useful ways. The interface between all of these is text, aka data, aka what is arguably the simplest interface.
Re:Use ack instead of grep to parse text files
by grabastic on Monday December 24, 2012 @05:00PM
(#4964252)
I'd say start with ack for its ease of use, but knowing grep is important. I prefer ack but most of the boxes i work on don't have ack installed (and won't).
Re:Use ack instead of grep to parse text files
by grabastic on Monday December 24, 2012 @05:02PM
(#4964258)
Also, these aren't particularly good examples of ack vs grep... as others have pointed out.
Re:Use ack instead of grep to parse text files
by bradsmithinc on Monday December 24, 2012 @04:45PM
(#4964213)
Yes!
When I need to do these sort of tasks, I do them in a scripting language with some combination of split() and regex instead of using command line tools. But, I'm just doing that because it's what I know.
Would I end up saving a significant amount of time if I learned to use grep instead?