
Expand (Unix)

codice_1 is a program that converts tab characters into groups of space characters, while maintaining correct alignment. It is available in Unix operating systems and many Unix-like operating systems.
Example.
For example:
$ echo -e "foo\tbar" | expand | xxd -g 1 -u
0000000: 66 6F 6F 20 20 20 20 20 62 61 72 0A foo bar.
$ echo -e "foo\tbar" | xxd -g 1 -u
0000000: 66 6F 6F 09 62 61 72 0A foo.bar.
Here the codice_2 command prints a string of text that includes a tab character, then the output is directed into the codice_1 command. The resulting output is then displayed in hexadecimal and as characters by the codice_4 dump command. At the second prompt, the same codice_2 output is sent directly to the codice_4 command. As can be seen by comparing the two, the codice_1 program converts the tab (specified as '\t' to the codice_2 program) into spaces.