Andy Lester
Andy Lester
So say we have a call like ack foo --head=1 That means that ack will show the first line that matches, plus any lines that match /foo/. Questions: * Do...
Also, back to my original question: Why use ack at all for this? Why not do: ps -a | head -n1 ; ps -a | grep cronolog
> because i want Perl RE not egrep RE ? I know why you might, but I was asking @alexm.
I get all those reasons for using ack over grep (I've preached them :-)) I was just meaning in the case of filtering output from `ps`.
The lines of dashes you've shown would be a new feature, right? Right now if you don't want the grouping/line numbers, you have the `-h`. We don't yet have an...
Some things I'm thinking about: You're talking about using this to show the first line of a stream because you know it's a command like `ps` and you want the...
I just realized, maybe `--output` and `--head` should be mutually exclusive, and it solves that problem. If you're specifying your own output, then you probably don't want the `--head` option...
Yes, many mutually exclusive options. See `mutex_options` function.
Before we get into the "how it could be done", let's talk interface. In an example where you have, say: ln foo foo1 ln foo subdir/foo2 ln foo other/dir/foo3 ln...
So the question, @halfmanhalffish, is: If you can get different results from two different runs of `ack` without any of the contents of your files changing, is that still a...