| cpfx2indent - Filter text of lines by replacing common prefixes to indentation |
cpfx2indent - Filter text of lines by replacing common prefixes to indentation
cpfx2indent [OPTIONS]
Analyzes input lines on STDIN to detect common prefixes and replaces each line’s leading segment with a number of TABs proportional to the length of the prefix it shares with other lines.
Tokenize input lines by PATTERN regexp pattern.
Default is any whitespace (\s+).
Indent output by STRING. Default is TAB. Other useful STRING are for example space, and double space.
indent2graph(1), indent2tree(1), paths2indent(1)
| cpfx2indent - Filter text of lines by replacing common prefixes to indentation |