Match

Command
match {prefix}
Purpose

Specify which characters to allow before looking for the first | (pipe) of a table's row.

Example

psv match #

  • reformat all tables, including any preceeded by any number of # characters
psv match /
  • match / matches / and //

Playground By default, psv ignores any lines which do not begin with a '|' (pipe) +- | one | two | three | = | 1|2|3 | will | you | dance| with | me? +- # A table inside a shell comment block # # +- # | one | two | three # | = # | 1|2|3 # | will | you | dance| with | me? # +- What happens when the sub-command "match #" is used? +- | one | two | three | = | 1|2|3 | will | you | dance| with | me? +- # A table inside a shell comment block # # +- # | one | two | three # | = # | 1|2|3 # | will | you | dance| with | me? # +- The prefix pattern "/" also matches "//", and "/ /", and "// //", ... // A table inside a C++ comment block // // +- // | one | two | three // | = // | 1|2|3 // | will | you | dance| with | me? // +-