1unix2dos(1)                 General Commands Manual                unix2dos(1)
2
3
4

NAME

6       unix2dos - UNIX to DOS text file format converter
7
8

SYNOPSYS

10       unix2dos [options] [-c convmode] [-o file ...] [-n infile outfile ...]
11
12       Options:
13
14       [-hkqV] [--help] [--keepdate] [--quiet] [--version]
15
16

DESCRIPTION

18       This  manual  page  documents  unix2dos, the program that converts text
19       files in UNIX format to DOS format.
20
21

OPTIONS

23       The following options are available:
24
25       -h --help
26              Print online help.
27
28
29       -k --keepdate
30              Keep the date stamp of output file same as input file.
31
32
33       -q --quiet
34              Quiet mode. Suppress all warning and messages.
35
36
37       -V --version
38              Prints version information.
39
40
41       -c --convmode convmode
42              Sets conversion mode. Simulates unix2dos under SunOS.
43
44
45       -o --oldfile file ...
46              Old file mode. Convert the file and write output to it. The pro‐
47              gram default to run in this mode. Wildcard names may be used.
48
49
50       -n --newfile infile outfile ...
51              New  file  mode. Convert the infile and write output to outfile.
52              File names must be given in pairs and wildcard names should  NOT
53              be used or you WILL lost your files.
54
55

EXAMPLES

57       Get input from stdin and write output to stdout.
58
59              unix2dos
60
61
62       Convert and replace a.txt. Convert and replace b.txt.
63
64              unix2dos a.txt b.txt
65
66              unix2dos -o a.txt b.txt
67
68
69       Convert  and  replace  a.txt  in  ASCII  conversion  mode.  Convert and
70       replace b.txt in ISO conversion mode.
71
72              unix2dos a.txt -c iso b.txt
73
74              unix2dos -c ascii a.txt -c iso b.txt
75
76
77       Convert and replace a.txt while keeping original date stamp.
78
79              unix2dos -k a.txt
80
81              unix2dos -k -o a.txt
82
83
84       Convert a.txt and write to e.txt.
85
86              unix2dos -n a.txt e.txt
87
88
89       Convert a.txt and write to e.txt, keep date  stamp  of  e.txt  same  as
90       a.txt.
91
92              unix2dos -k -n a.txt e.txt
93
94
95       Convert and replace a.txt. Convert b.txt and write to e.txt.
96
97              unix2dos a.txt -n b.txt e.txt
98
99              unix2dos -o a.txt -n b.txt e.txt
100
101
102       Convert  c.txt  and write to e.txt. Convert and replace a.txt.  Convert
103       and replace b.txt. Convert d.txt and write to f.txt.
104
105              unix2dos -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt
106
107

DIAGNOSTICS

BUGS

110       The program does not work properly  under  MSDOS  in  stdio  processing
111       mode.  If you know why is that so, please tell me.
112
113

AUTHOR

115       Benjamin Lin - ( blin@socs.uts.edu.au )
116
117

MISCELLANY

119       Tested environment:
120
121              Linux 1.2.0 with GNU C 2.5.8
122
123              SunOS 4.1.3 with GNU C 2.6.3
124
125              MS-DOS 6.20 with Borland C++ 4.02
126
127       Suggestions and bug reports are welcome.
128
129

SEE ALSO

131       dos2unix(1)
132
133
134
135
1361995.03.31                       unix2dos v2.2                     unix2dos(1)
Impressum