cpfx2indent - Filter text of lines by replacing common prefixes to indentation



NAME

cpfx2indent - Filter text of lines by replacing common prefixes to indentation


SYNOPSIS

cpfx2indent [OPTIONS]


DESCRIPTION

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.


OPTIONS

-d, --delimiter PATTERN

Tokenize input lines by PATTERN regexp pattern. Default is any whitespace (\s+).

-i, --indent-by STRING

Indent output by STRING. Default is TAB. Other useful STRING are for example space, and double space.


ENVIRONMENT


LIMITATIONS


SEE ALSO

indent2graph(1), indent2tree(1), paths2indent(1)

 cpfx2indent - Filter text of lines by replacing common prefixes to indentation