-
Notifications
You must be signed in to change notification settings - Fork 235
Open
Labels
enhancementNew feature or requestNew feature or request
Description
$ MANWIDTH=72 man grep | sed -n '/-T/,/^$/p'
-T, --initial-tab
Make sure that the first character of actual line content
lies on a tab stop, so that the alignment of tabs looks
normal. This is useful with options that prefix their
output to the actual content: -H,-n, and -b. In order to
improve the probability that lines from a single file
will all start at the same column, this also causes the
line number and byte offset (if present) to be printed in
a minimum size field width.
This is a nice GNU extension for having aligned output. I've replaced some uses of grep -P
by pcre2grep
because grep(1) isn't powerful enough (it doesn't accept more than one pattern), and am missing the nice alignment.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request