1unix2dos(1)                      User Commands                     unix2dos(1)
2
3
4

NAME

6       unix2dos - convert text file from ISO format to DOS format
7

SYNOPSIS

9       unix2dos [-ascii] [-iso] [-7]
10            [-437 | -850 | -860 | -863 | -865] originalfile convertedfile
11
12

DESCRIPTION

14       The  unix2dos  utility  converts  ISO standard characters to the corre‐
15       sponding characters in the DOS extended character set.
16
17
18       This command may be invoked from either  DOS  or  SunOS.  However,  the
19       filenames  must  conform to the conventions of the environment in which
20       the command is invoked.
21
22
23       If the original file and the converted file  are  the  same,   unix2dos
24       will rewrite the original file after converting it.
25

OPTIONS

27       The following options are supported:
28
29       -ascii    Adds  carriage returns and converts end of file characters in
30                 SunOS format text files to conform to DOS requirements.
31
32
33       -iso      This is the default. Converts ISO standard characters to  the
34                 corresponding character in the DOS extended character set.
35
36
37       -7        Converts 8 bit SunOS characters to 7 bit DOS characters.
38
39
40
41       On  non-i386 systems, unix2dos will attempt to obtain the keyboard type
42       to determine which code page to use. Otherwise, the default is US.  The
43       user may override the code page with one of the following options:
44
45       -437    Use US code page
46
47
48       -850    Use multilingual code page
49
50
51       -860    Use Portuguese code page
52
53
54       -863    Use French Canadian code page
55
56
57       -865    Use Danish code page
58
59

OPERANDS

61       The following operands are required:
62
63       originalfile      The  original  file  in ISO format that is being con‐
64                         verted to DOS format.
65
66
67       convertedfile     The new file in DOS format that  has  been  converted
68                         from the original ISO file format.
69
70

ATTRIBUTES

72       See attributes(5) for descriptions of the following attributes:
73
74
75
76
77       ┌─────────────────────────────┬─────────────────────────────┐
78       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
79       ├─────────────────────────────┼─────────────────────────────┤
80       │Availability                 │SUNWesu                      │
81       └─────────────────────────────┴─────────────────────────────┘
82

SEE ALSO

84       dos2unix(1), ls(1), attributes(5)
85

DIAGNOSTICS

87       File filename not found, or no read permission
88
89           The  input  file  you  specified does not exist, or you do not have
90           read permission. Check with the SunOS command, ls -l (see ls(1)).
91
92
93       Bad output filename filename, or no write permission
94
95           The output file you specified is either invalid, or you do not have
96           write  permission  for that file or the directory that contains it.
97           Check also that the drive or diskette is not write-protected.
98
99
100       Error while writing to temporary file
101
102           An error occurred while  converting  your  file,  possibly  because
103           there is not enough space on the current drive. Check the amount of
104           space on the current drive using the DIR command. Also  be  certain
105           that the default diskette or drive is write-enabled (not write-pro‐
106           tected). Notice that when this  error  occurs,  the  original  file
107           remains intact.
108
109
110       Translated tmpfile name = filename.
111       Could not rename tmpfile to filename.
112
113           The  program  could  not  perform the final step in converting your
114           file. Your converted file is stored under the name indicated on the
115           second line of this message.
116
117
118
119
120SunOS 5.11                        14 Sep 2000                      unix2dos(1)
Impressum