macOS / binaries /

unexpand

/usr/bin/unexpand
Convert spaces to tabs

The unexpand utility shall copy files or standard input to standard output, converting characters at the beginning of each line into the maximum number of characters followed by the minimum number of characters needed to fill the same column positions originally filled by the translated characters.

source: man7.org