Skip to content

pcre2grep(1): Please add -T flag #779

@alejandro-colomar

Description

@alejandro-colomar
$ 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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions