moses@deunan:~$ }] [-zCntud] [-{E|S}] [..]Use ack instead of grep to parse text files
21–30 of 51 posts
Re: Use ack instead of grep to parse text files
#22Re: Use ack instead of grep to parse text files
#23Re: Use ack instead of grep to parse text files
#24This article is a wonderful demonstration why simple methods piped together is better and easier to use than a giant monolithic application like awk.
Are you confusing awk with ack?
Re: Use ack instead of grep to parse text files
#25Re: Use ack instead of grep to parse text files
#26This article is a wonderful demonstration why simple methods piped together is better and easier to use than a giant monolithic application like awk.
Are you confusing awk with ack?
But that too seems like a demonstration of something. The more "simple" methods with obscure names that populate the Unix toolbox, the more confusing it gets. I've gone from find to locate recently, for example, but their functionalities kind of overlap and so when I do find, I'm rusty with it.
Re: Use ack instead of grep to parse text files
#27Re: Use ack instead of grep to parse text files
#28Re: Use ack instead of grep to parse text files
#29Re: Use ack instead of grep to parse text files
#30>The primary virtue of these commands is that they use the Perl regular expression engine. You mean the engine that lets you write pathological regular expressions[1] and accidentally ReDoS[2] yourself? To be fair, it's fine if you understand how the engine works well enough to avoid these cases. But how many people can actually say this? 1. http://swtch.com/~rsc/regexp/regexp1.html 2. http://en.wikipedia.org/wiki/Re…
I was looking into breaking a Perl IRC bot the other day and couldn't get any of the examples to work (that is, take more than a split second to execute). Does perl now detect these pathological cases and work around them or was I just not trying the examples correctly?