
| unexpand | |
| Operating System: | Unix and Unix-like |
| Platform: | Cross-platform |
| Genre: | Command |
'''unexpand''' is a shell command that converts space characters to tab characters.[1] Originally, developed for Unix and standardized by POSIX, it is available on many operating systems today.
In the following commands, the echo command prints a string of text that includes multiple consecutive spaces. The output is directed into . The resulting output is displayed as octal via [[Od (Unix)|od]]. At the second prompt, the same echo output is sent directly to . As shown, converts each sequence of eight spaces to a tab (printed as '\t').