dirconvert —
Convert color strings between LSCOLORS and LS_COLORS
format
dirconvert |
LSCOLORS | LS_COLORS |
The dirconvert utility reads the inputed
string and converts that string into the alternative format. If the input is
a single dash (‘-’)
dirconvert reads the first line from the standard
input.
The dirconvert utility exits 0 on
success, and >0 if an error occurs.
Convert LS_COLORS to LSCOLORS format:
$ dirconvert "$LS_COLORS"
ExgxdxGxGxDxdxHxHxHeEx