expand (Unix)

expand is a program that converts tab characters into groups of space characters, while maintaining correct alignment.

[1] The command is available as a separate package for Microsoft Windows as part of the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities.

[2] For example: Here the echo command prints a string of text that includes a tab character, then the output is directed into the expand command.

The resulting output is then displayed in hexadecimal and as characters by the xxd dump command.

At the second prompt, the same echo output is sent directly to the xxd command.