Skip to content

ugrep v6.4

Compare
Choose a tag to compare
@genivia-inc genivia-inc released this 07 Aug 20:32
· 30 commits to master since this release

What's new?

  • new custom output format fields for options --format and --replace #414:
    %A          byte range in hex of match
    %l          last line number of match
    %L          number of lines of a match
    %R          newline, if --break
    %[hhhh]U    U+hhhh Unicode code point
    %y          matching pattern as hex
    %Y          matching line as hex
    %[ms]=...%= color of ms ... color off
    %[n]j       nth capture as JSON
    %[n]q       nth capture quoted
    %[n]x       nth capture as XML
    %[n]y       nth capture as hex
    %[n]v       nth capture as CSV
    %[name]j    named capture as JSON
    %[name]q    named capture quoted
    %[name]x    named capture as XML
    %[name]y    named capture as hex
    %[name]v    named capture as CSV
    %[n|...]j   capture n,... as JSON
    %[n|...]q   capture n,... quoted
    %[n|...]x   capture n,... as XML
    %[n|...]y   capture n,... as hex
    %[n|...]v   capture n,... as CSV
    
    • numeric fields such as %n are padded with spaces when %{width}n is specified with a numeric width > 0
    • matching line fields such as %O are cut to width when %{width}O is specified or when %{-width}O is specified to cut from the end of the line
    • character context on a matching line before or after a match is output when %{-width}o or %{+width}o is specified for match fields such as %o, where %{width}o without a +/- sign cuts the match to the specified width
  • fix bash completions for key bindings #415