The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >
</head>
<body class='pod'>
<!--
  generated by Pod::Simple::HTML v3.01,
  using Pod::Simple::PullParser v2.02,
  under Perl v5.008002 at Thu Aug  5 13:56:17 2004 GMT.

 If you want to change this HTML document, you probably shouldn't do that
   by changing it directly.  Instead, see about changing the calling options
   to Pod::Simple::HTML, and/or subclassing Pod::Simple::HTML,
   then reconverting this document from the Pod source.
   When in doubt, email the author of Pod::Simple::HTML for advice.
   See 'perldoc Pod::Simple::HTML' for more info.

-->

<!-- start doc -->
<a name='___top' class='dummyTopAnchor' ></a>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="SYNOPSIS"
>SYNOPSIS</a></h1>

<p>expand [<b>-h</b>] [<b>-tabstop</b>] [<b>-tab1,
tab2,
...</b>] [<b>file</b> ...]</p>

<p>unexpand [<b>-h</b>] [<b>-a</b>] [<b>-tabstop</b>] [<b>-tab1,
tab2,
...</b>] [<b>file</b> ...]</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p><i>expand</i> processes the named files or the standard input writing the standard output with tabs changed into blanks.
Backspace characters are preserved into the output and decrement the column count for tab calculations.
<i>expand</i> is useful for pre-processing character files (before sorting,
looking at specific columns,
etc.) that contain tabs.</p>

<p>If a single <b>tabstop</b> argument is given,
tabs are set <b>tabstop</b> spaces apart instead of the default 8.
If multiple tabstops are given then the tabs are set at those specific columns.</p>

<p><i>unexpand</i> puts tabs back into the data from the standard input or the named files and writes the result on the standard output.</p>

<p>Option (with <i>expand</i> and <i>unexpand</i>):</p>

<dl>
<dt><a name="-h"
>-h</a></dt><p class="pad"></p>

<dd>Print a usage message and exit with a status code indicating success.</dd><p class="pad"></p>
</dl>

<p>Option (with <i>unexpand</i> only):</p>

<dl>
<dt><a name="-a"
>-a</a></dt><p class="pad"></p>

<dd>By default,
only leading blanks and tabs are reconverted to maximal strings of tabs.
If the <b>-a</b> option is given,
tabs are inserted whenever they would compress the resultant file by replacing two or more characters.</dd><p class="pad"></p>
</dl>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="AUTHOR"
>AUTHOR</a></h1>


The Perl implementation was written by <A
href="mailto:thbzcrt@worldnet.fr">Thierry B&eacute;zecourt</A> for the
<A href="http://language.perl.com/ppt/">Perl Power Tools project</A>,
March 1999.


<!--


<p>The Perl implementation was written by Thierry Bezecourt,
<i>thbzcrt@worldnet.fr</i>.
Perl Power Tools project,
March 1999.</p>

-->


<p>This documentation comes from the BSD expand(1) man page.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="COPYRIGHT_and_LICENSE"
>COPYRIGHT and LICENSE</a></h1>

<p>This program is free and open software.
You may use,
modify,
distribute,
and sell this program (and any modified variants) in any way you wish,
provided you do not restrict others from doing the same.</p>

<!-- end doc -->

</body></html>