ITABS v1.31 - implode spaces to tabs |
Documentation revised 21 Oct 00 - Copyright (c) 1996-2000 by Rune Berg. TextTools Freeware. |
Contents:
Usage | Top || Next |
itabs [log logfile] [options] [infile] [to outfile]
See Understanding The Usage Section for details.
Description | Top || Previous || Next |
itabs copies infile to outfile, replacing every sequence of spaces leading up to a tab position by a tab character.
outfile will look the same as infile, provided the tab size used by itabs is the same as that 'assumed' in infile.
The default tab size is 3, giving tab positions 4, 7, 10 ...
itabs writes a one-line report to standard error (or logfile, if used) when done, e.g.:
itabs: 15 tabs inserted
If you don't specify infile, itabs reads from standard input.
If you don't specify outfile, itabs writes to standard output.
If you don't specify logfile, itabs writes error messages to
standard error.
Options | Top || Previous || Next |
itabs recognizes the following command line options:
Option | Function |
---|---|
-v | Print version banner and usage info to standard error (or logfile, if given), then exit. |
-nX | Use tab size X (2..128) instead of the default 3. |
-q | No tab insertion inside "double quotes" or 'single quotes'.
Escape sequences \", \', and \\ are handled correctly within quotes. This option prevents itabs from inserting tabs in C string and character constants. |
-l | Only insert tabs in place of leading spaces. |
-nr | Don't print report at end of processing. |
Return Codes | Top || Previous || Next |
itabs returns with one of the following codes ("error levels"):
Code | Meaning |
---|---|
0 | Success |
102 | Incorrect/missing command line arguments |
104 | Error opening file |
105 | I/O Error |
107 | File name clash |
For more details, see TextTools General Features.
Version History | Top || Previous |
These are the released versions of itabs:
Version | Date | Changes |
---|---|---|
1.01 | 25-Feb-96 | n/a |
1.10 | 28-Sep-96 |
|
1.10 | 11-May-97 |
|
1.20 | 5-Jul-97 |
|
1.30 | 2-Jan-99 |
|
1.31 | 21-Oct-00 |
|
End of document |