expand, unexpand — Expand Tab Characters to Space Characters, and Vice Versa
Synopsis
/usr/bin/expand [-t tablist] [file...] /usr/bin/expand [-tabstop] [-tab1,tab2,...,tabn] [file...] /usr/bin/unexpand [-a] [-t tablist] [file...]
Description
expand copies files (or the standard input) to the standard output, with Tab characters expanded to space characters. Backspace characters are preserved in the output and decrement the column count for Tab calculations. expand is useful for preprocessing character files (before sorting, looking at specific columns, and so forth) that contain Tab characters.
unexpand copies files (or the standard input) to the standard output, putting Tab characters back into the data. By default, only leading space and ...
Get Solaris™ 7 Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.