Writes to standard output with tabs restored.
unexpand [ -a | -t TabList ] [ File ... ]
The unexpand command puts tabs back into the data from the standard input or the named files and writes the result to standard output. By default, only leading spaces and tabs are reconverted to maximal strings of tabs.
Note: The File parameter must be a text file.
Note: When the -t flag is specified, the -a flag is ignored and conversion is not limited to processing leading blank characters.
This command returns the
following exit values:
0 | The command ran successfully. |
>0 | An error occurred. |
To replace space characters with tab characters in the xyz file, enter:
unexpand xyz
/usr/bin/unexpand | Contains the unexpand command. |
The expand command, newform command, tab command, untab command.
Files Overview in AIX 5L Version 5.1 System User's Guide: Operating System and Devices.
Input and Output Redirection Overview in AIX 5L Version 5.1 System User's Guide: Operating System and Devices.