2 .\" Copyright (c) 2000, Sun Microsystems, Inc.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH DOS2UNIX 1 "Sep 14, 2000"
8 dos2unix \- convert text file from DOS format to ISO format
12 \fBdos2unix\fR [\fB-ascii\fR] [\fB-iso\fR] [\fB-7\fR]
13 [\fB-437\fR | \fB-850\fR | \fB-860\fR | \fB-863\fR | \fB-865\fR] \fIoriginalfile\fR \fIconvertedfile\fR
19 The \fBdos2unix\fR utility converts characters in the \fBDOS\fR extended
20 character set to the corresponding \fBISO\fR standard characters.
23 This command can be invoked from either \fBDOS\fR or SunOS. However, the
24 filenames must conform to the conventions of the environment in which the
28 If the original file and the converted file are the same, \fBdos2unix\fR will
29 rewrite the original file after converting it.
33 The following options are supported:
40 Removes extra carriage returns and converts end of file characters in \fBDOS\fR
41 format text files to conform to SunOS requirements.
50 This is the default. It converts characters in the \fBDOS\fR extended character
51 set to the corresponding \fBISO\fR standard characters.
60 Converts 8 bit \fBDOS\fR graphics characters to 7 bit space characters so that
61 SunOS can read the file.
66 On non-i386 systems, \fBdos2unix\fR will attempt to obtain the keyboard type to
67 determine which code page to use. Otherwise, the default is US. The user may
68 override the code page with one of the following options:
84 Use multilingual code page
93 Use Portuguese code page
102 Use French Canadian code page
117 The following operands are required:
121 \fB\fIoriginalfile\fR \fR
124 The original file in \fBDOS\fR format that is being converted to \fBISO\fR
131 \fB\fIconvertedfile\fR \fR
134 The new file in \fBISO\fR format that has been converted from the original
135 \fBDOS\fR file format.
141 \fBunix2dos\fR(1), \fBls\fR(1), \fBattributes\fR(5)
146 \fB\fBFile \fIfilename\fR not found, or no read permission\fR\fR
150 The input file you specified does not exist, or you do not have read
151 permission. Check with the SunOS command, \fBls\fR \fB-l\fR (see \fBls\fR(1)).
157 \fB\fBBad output filename \fIfilename\fR, or no write permission\fR\fR
161 The output file you specified is either invalid, or you do not have write
162 permission for that file or the directory that contains it. Check also that
163 the drive or diskette is not write-protected.
169 \fB\fBError while writing to temporary file\fR\fR
173 An error occurred while converting your file, possibly because there is not
174 enough space on the current drive. Check the amount of space on the current
175 drive using the \fBDIR\fR command. Also be certain that the default diskette or
176 drive is write-enabled (not write-protected). Notice that when this error
177 occurs, the original file remains intact.
183 \fB\fBTranslated temporary file name =\fR \fIfilename\fR.\fR
187 \fB\fBCould not rename temporary file to \fIfilename\fR.\fR\fR
191 The program could not perform the final step in converting your file. Your
192 converted file is stored under the name indicated on the second line of this