1dos2unix(1) User Commands dos2unix(1)
2
3
4
6 dos2unix - convert text file from DOS format to ISO format
7
9 dos2unix [-ascii] [-iso] [-7]
10 [-437 | -850 | -860 | -863 | -865] originalfile convertedfile
11
12
14 The dos2unix utility converts characters in the DOS extended character
15 set to the corresponding ISO standard characters.
16
17
18 This command can 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, dos2unix
24 will rewrite the original file after converting it.
25
27 The following options are supported:
28
29 -ascii Removes extra carriage returns and converts end of file char‐
30 acters in DOS format text files to conform to SunOS require‐
31 ments.
32
33
34 -iso This is the default. It converts characters in the DOS
35 extended character set to the corresponding ISO standard
36 characters.
37
38
39 -7 Converts 8 bit DOS graphics characters to 7 bit space charac‐
40 ters so that SunOS can read the file.
41
42
43
44 On non-i386 systems, dos2unix will attempt to obtain the keyboard type
45 to determine which code page to use. Otherwise, the default is US. The
46 user may override the code page with one of the following options:
47
48 -437 Use US code page
49
50
51 -850 Use multilingual code page
52
53
54 -860 Use Portuguese code page
55
56
57 -863 Use French Canadian code page
58
59
60 -865 Use Danish code page
61
62
64 The following operands are required:
65
66 originalfile The original file in DOS format that is being con‐
67 verted to ISO format.
68
69
70 convertedfile The new file in ISO format that has been converted
71 from the original DOS file format.
72
73
75 See attributes(5) for descriptions of the following attributes:
76
77
78
79
80 ┌─────────────────────────────┬─────────────────────────────┐
81 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
82 ├─────────────────────────────┼─────────────────────────────┤
83 │Availability │SUNWesu │
84 └─────────────────────────────┴─────────────────────────────┘
85
87 unix2dos(1), ls(1), attributes(5)
88
90 File filename not found, or no read permission
91
92 The input file you specified does not exist, or you do not have
93 read permission. Check with the SunOS command, ls -l (see ls(1)).
94
95
96 Bad output filename filename, or no write permission
97
98 The output file you specified is either invalid, or you do not have
99 write permission for that file or the directory that contains it.
100 Check also that the drive or diskette is not write-protected.
101
102
103 Error while writing to temporary file
104
105 An error occurred while converting your file, possibly because
106 there is not enough space on the current drive. Check the amount of
107 space on the current drive using the DIR command. Also be certain
108 that the default diskette or drive is write-enabled (not write-pro‐
109 tected). Notice that when this error occurs, the original file
110 remains intact.
111
112
113 Translated temporary file name = filename.
114 Could not rename temporary file to filename.
115
116 The program could not perform the final step in converting your
117 file. Your converted file is stored under the name indicated on the
118 second line of this message.
119
120
121
122
123SunOS 5.11 14 Sep 2000 dos2unix(1)