Print this page
10067 Miscellaneous man page typos
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Volker A. Brandt <vab@bb-c.de>


  46 .TH EXPAND 1 "Feb 1, 1995"
  47 .SH NAME
  48 expand, unexpand \- expand TAB characters to SPACE characters, and vice versa
  49 .SH SYNOPSIS
  50 .LP
  51 .nf
  52 \fBexpand\fR [\fB-t\fR \fItablist\fR] [\fIfile\fR]...
  53 .fi
  54 
  55 .LP
  56 .nf
  57 \fBexpand\fR [\fB-\fItabstop\fR\fR] [\fB-\fItab1,\fR\fR \fItab2,.\fR \fI\&.\fR \fI\&.,\fR \fItabn\fR] [\fIfile\fR]...
  58 .fi
  59 
  60 .LP
  61 .nf
  62 \fBunexpand\fR [\fB-a\fR] [\fB-t\fR \fItablist\fR] [\fIfile\fR]...
  63 .fi
  64 
  65 .SH DESCRIPTION
  66 .sp
  67 .LP
  68 The \fBexpand\fR utility copies \fIfile\fRs (or the standard input) to the
  69 standard output, with TAB characters expanded to SPACE characters. BACKSPACE
  70 characters are preserved into the output and decrement the column count for TAB
  71 calculations. \fBexpand\fR is useful for pre-processing character files (before
  72 sorting, looking at specific columns, and so forth) that contain TAB
  73 characters.
  74 .sp
  75 .LP
  76 \fBunexpand\fR copies \fIfile\fRs (or the standard input) to the standard
  77 output, putting TAB characters back into the data. By default, only leading
  78 SPACE and TAB characters are converted to strings of tabs, but this can be
  79 overridden by the \fB-a\fR option (see the OPTIONS section below).
  80 .SH OPTIONS
  81 .sp
  82 .LP
  83 The following options are supported for \fBexpand\fR:
  84 .sp
  85 .ne 2
  86 .na
  87 \fB\fB-t\fR \fItablist\fR \fR
  88 .ad
  89 .RS 26n
  90 Specifies the tab stops. The argument \fItablist\fR must consist of a single
  91 positive decimal integer or multiple positive decimal integers, separated by
  92 blank characters or commas, in ascending order. If a single number is given,
  93 tabs will be set \fItablist\fR column positions apart instead of the default
  94 \fB8\fR. If multiple numbers are given, the tabs will be set at those specific
  95 column positions.
  96 .sp
  97 Each tab-stop position \fIN\fR must be an integer value greater than zero, and
  98 the list must be in strictly ascending order. This is taken to mean that, from
  99 the start of a line of output, tabbing to position \fIN\fR causes the next
 100 character output to be in the (\fIN\fR+1)th column position on that line.
 101 .sp


 148 decimal integers, separated by blank characters or commas, in ascending order.
 149 If a single number is given, tabs will be set \fItablist\fR column positions
 150 apart instead of the default \fB8\fR. If multiple numbers are given, the tabs
 151 will be set at those specific column positions. Each tab-stop position \fIN\fR
 152 must be an integer value greater than zero, and the list must be in strictly
 153 ascending order. This is taken to mean that, from the start of a line of
 154 output, tabbing to position \fIN\fR will cause the next character output to be
 155 in the (\fIN\fR+1)th column position on that line. When the \fB-t\fR option is
 156 not specified, the default is the equivalent of specifying \fB-t\fR \fB8\fR
 157 (except for the interaction with \fB-a\fR, described below).
 158 .sp
 159 No space-to-tab character conversions occur for characters at positions beyond
 160 the last of those specified in a multiple tab-stop list.
 161 .sp
 162 When \fB-t\fR is specified, the presence or absence of the \fB-a\fR option is
 163 ignored; conversion will not be limited to the processing of leading blank
 164 characters.
 165 .RE
 166 
 167 .SH OPERANDS
 168 .sp
 169 .LP
 170 The following ooperand is supported for \fBexpand\fR and \fBunexpand\fR:
 171 .sp
 172 .ne 2
 173 .na
 174 \fB\fB\fIfile\fR\fR \fR
 175 .ad
 176 .RS 9n
 177 The path name of a text file to be used as input.
 178 .RE
 179 
 180 .SH ENVIRONMENT VARIABLES
 181 .sp
 182 .LP
 183 See \fBenviron\fR(5) for descriptions of the following environment variables
 184 that affect the execution of \fBexpand\fR and \fBunexpand\fR: \fBLANG\fR,
 185 \fBLC_ALL\fR, \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR.
 186 .SH EXIT STATUS
 187 .sp
 188 .LP
 189 The following exit values are returned:
 190 .sp
 191 .ne 2
 192 .na
 193 \fB\fB0\fR \fR
 194 .ad
 195 .RS 7n
 196 Successful completion
 197 .RE
 198 
 199 .sp
 200 .ne 2
 201 .na
 202 \fB\fB>0\fR \fR
 203 .ad
 204 .RS 7n
 205 An error occurred.
 206 .RE
 207 
 208 .SH ATTRIBUTES
 209 .sp
 210 .LP
 211 See \fBattributes\fR(5) for descriptions of the following attributes:
 212 .sp
 213 
 214 .sp
 215 .TS
 216 box;
 217 c | c
 218 l | l .
 219 ATTRIBUTE TYPE  ATTRIBUTE VALUE
 220 _
 221 CSI     enabled
 222 _
 223 Interface Stability     Standard
 224 .TE
 225 
 226 .SH SEE ALSO
 227 .sp
 228 .LP
 229 \fBtabs\fR(1), \fBattributes\fR(5), \fBenviron\fR(5), \fBstandards\fR(5)


  46 .TH EXPAND 1 "Feb 1, 1995"
  47 .SH NAME
  48 expand, unexpand \- expand TAB characters to SPACE characters, and vice versa
  49 .SH SYNOPSIS
  50 .LP
  51 .nf
  52 \fBexpand\fR [\fB-t\fR \fItablist\fR] [\fIfile\fR]...
  53 .fi
  54 
  55 .LP
  56 .nf
  57 \fBexpand\fR [\fB-\fItabstop\fR\fR] [\fB-\fItab1,\fR\fR \fItab2,.\fR \fI\&.\fR \fI\&.,\fR \fItabn\fR] [\fIfile\fR]...
  58 .fi
  59 
  60 .LP
  61 .nf
  62 \fBunexpand\fR [\fB-a\fR] [\fB-t\fR \fItablist\fR] [\fIfile\fR]...
  63 .fi
  64 
  65 .SH DESCRIPTION

  66 .LP
  67 The \fBexpand\fR utility copies \fIfile\fRs (or the standard input) to the
  68 standard output, with TAB characters expanded to SPACE characters. BACKSPACE
  69 characters are preserved into the output and decrement the column count for TAB
  70 calculations. \fBexpand\fR is useful for pre-processing character files (before
  71 sorting, looking at specific columns, and so forth) that contain TAB
  72 characters.
  73 .sp
  74 .LP
  75 \fBunexpand\fR copies \fIfile\fRs (or the standard input) to the standard
  76 output, putting TAB characters back into the data. By default, only leading
  77 SPACE and TAB characters are converted to strings of tabs, but this can be
  78 overridden by the \fB-a\fR option (see the OPTIONS section below).
  79 .SH OPTIONS

  80 .LP
  81 The following options are supported for \fBexpand\fR:
  82 .sp
  83 .ne 2
  84 .na
  85 \fB\fB-t\fR \fItablist\fR \fR
  86 .ad
  87 .RS 26n
  88 Specifies the tab stops. The argument \fItablist\fR must consist of a single
  89 positive decimal integer or multiple positive decimal integers, separated by
  90 blank characters or commas, in ascending order. If a single number is given,
  91 tabs will be set \fItablist\fR column positions apart instead of the default
  92 \fB8\fR. If multiple numbers are given, the tabs will be set at those specific
  93 column positions.
  94 .sp
  95 Each tab-stop position \fIN\fR must be an integer value greater than zero, and
  96 the list must be in strictly ascending order. This is taken to mean that, from
  97 the start of a line of output, tabbing to position \fIN\fR causes the next
  98 character output to be in the (\fIN\fR+1)th column position on that line.
  99 .sp


 146 decimal integers, separated by blank characters or commas, in ascending order.
 147 If a single number is given, tabs will be set \fItablist\fR column positions
 148 apart instead of the default \fB8\fR. If multiple numbers are given, the tabs
 149 will be set at those specific column positions. Each tab-stop position \fIN\fR
 150 must be an integer value greater than zero, and the list must be in strictly
 151 ascending order. This is taken to mean that, from the start of a line of
 152 output, tabbing to position \fIN\fR will cause the next character output to be
 153 in the (\fIN\fR+1)th column position on that line. When the \fB-t\fR option is
 154 not specified, the default is the equivalent of specifying \fB-t\fR \fB8\fR
 155 (except for the interaction with \fB-a\fR, described below).
 156 .sp
 157 No space-to-tab character conversions occur for characters at positions beyond
 158 the last of those specified in a multiple tab-stop list.
 159 .sp
 160 When \fB-t\fR is specified, the presence or absence of the \fB-a\fR option is
 161 ignored; conversion will not be limited to the processing of leading blank
 162 characters.
 163 .RE
 164 
 165 .SH OPERANDS

 166 .LP
 167 The following operand is supported for \fBexpand\fR and \fBunexpand\fR:
 168 .sp
 169 .ne 2
 170 .na
 171 \fB\fB\fIfile\fR\fR \fR
 172 .ad
 173 .RS 9n
 174 The path name of a text file to be used as input.
 175 .RE
 176 
 177 .SH ENVIRONMENT VARIABLES

 178 .LP
 179 See \fBenviron\fR(5) for descriptions of the following environment variables
 180 that affect the execution of \fBexpand\fR and \fBunexpand\fR: \fBLANG\fR,
 181 \fBLC_ALL\fR, \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR.
 182 .SH EXIT STATUS

 183 .LP
 184 The following exit values are returned:
 185 .sp
 186 .ne 2
 187 .na
 188 \fB\fB0\fR \fR
 189 .ad
 190 .RS 7n
 191 Successful completion
 192 .RE
 193 
 194 .sp
 195 .ne 2
 196 .na
 197 \fB\fB>0\fR \fR
 198 .ad
 199 .RS 7n
 200 An error occurred.
 201 .RE
 202 
 203 .SH ATTRIBUTES

 204 .LP
 205 See \fBattributes\fR(5) for descriptions of the following attributes:
 206 .sp
 207 
 208 .sp
 209 .TS
 210 box;
 211 c | c
 212 l | l .
 213 ATTRIBUTE TYPE  ATTRIBUTE VALUE
 214 _
 215 CSI     enabled
 216 _
 217 Interface Stability     Standard
 218 .TE
 219 
 220 .SH SEE ALSO

 221 .LP
 222 \fBtabs\fR(1), \fBattributes\fR(5), \fBenviron\fR(5), \fBstandards\fR(5)