-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: --no-group-separator option #363
Comments
Seems useful. First thing that comes to mind is that we may have confusing with --group/--nogroup. I'm not saying that's a show-stopper. Please tell me about how you would use this. |
For an example, I have a log of stenography keystrokes pressed (one stroke per line) and use the |
@petdance says
space-track.org publishes satellite orbital elements (3 lines per satellite - first line is the name, and the 2nd and 3rd lines are the data). I use ack with I really don't want the Here is the documentation of the format: Would appreciate it if you were to add this As a workaround I'm just using Gnu grep for this step. |
That doesn't sound like a workaround. It sounds like using the right tool for the job. If the use case is a pipeline, and grep works, I'd suggest using grep. ack is geared towards being read by humans on a screen. |
Ack, grep, and other programs sensibly print
--
between groups of context (-A/-B/-C
). However, it would be nice to disable the--
with an option especially when the output will be further processed. GNU grep has a--no-group-separator
option for this.See also https://stackoverflow.com/questions/2168065/how-do-i-get-rid-of-line-separator-when-using-grep-with-context-lines.
The text was updated successfully, but these errors were encountered: