3 ms·
`ack` has been my goto for grep-likes -- though I would occasionally `ag` for the multi-line support, which ack does not have. My favorite feature of ack that a
by danso 8y ago
`ack` has been my goto for grep-likes -- though I would occasionally `ag` for the multi-line support, which ack does not have. My favorite feature of ack that ag didn't have was the --output flag, which would let you do something like this:
$ ack '^(\w+)' --output 'hello $1 world'
hello abc world
hello defgh world
hello etc world
But seems like this is equivalent to rg's `-or` flag, so looks like I don't have any reason to not switch over. I love the `-r` flag by itself (short for `--replace`), which seems like a handy replacement for sed's substitution. Also, I've been impressed with how responsive and receptive the author has been on Github.
And it doesn't hurt that all of other burntsushi's tools seem solid and well-designed, such as xsv.
- icc97 8y agoYou can use ripgrep with Ack. We'll at least you can with Vim [0], so I assume it works outside Vim too. [0]: https://github.com/mileszs/ack.vim https://github.com/mileszs/ack.vim