Writes to standard output with tabs changed to spaces.
expand [ -t TabList ] [ File ... ]
The expand command writes the named files or standard input to standard output, and replaces the tab characters with one or more space characters. Any backspace characters are copied to the output and cause the column position count for tab stop calculations to decrement; the column position count will not decrement below zero.
Note: The File parameter must be a text file.
This command returns the following exit values:
0 | Successful completion. |
>0 | An error occurred. |
expand -t 3 text.filIf text.fil contains:
1 2 3456789then the expand command displays:
1 2 3456789
expand -t 3,15,22 text.filOR
expand -t "3 15 22" text.filIf text.fil contains:
1 2 3 456789then the expand command displays:
1 2 3 456789
/usr/bin/expand | Contains the expand command. |
The newform command, tab command, unexpand command, untab command.
Files Overview in the AIX Version 4.3 System User's Guide: Operating System and Devices introduces you to files and the way you can work with them.
Input and Output Redirection Overview in the AIX Version 4.3 System User's Guide: Operating System and Devices describes how the operating system processes input and output.