1 Content-type: text/html
3 <HTML><HEAD><TITLE>Manpage of unix2dos
</TITLE>
6 Section: User Commands (
1)
<BR>Updated: unix2dos v2.2
<BR><A HREF=
"#index">Index
</A>
7 <A HREF=
"http://localhost/cgi-bin/man/man2html">Return to Main Contents
</A><HR>
10 <A NAME=
"lbAB"> </A>
14 unix2dos - UNIX to DOS text file format converter
16 <A NAME=
"lbAC"> </A>
20 unix2dos [options] [-c convmode] [-o file ...] [-n infile outfile ...]
26 [-hkqV] [--help] [--keepdate] [--quiet] [--version]
28 <A NAME=
"lbAD"> </A>
34 This manual page documents dos2unix, the program that converts text
35 files in UNIX format to DOS format.
37 <A NAME=
"lbAE"> </A>
41 The following options are available:
48 <DT><B>-k --keepdate
</B>
51 Keep the date stamp of output file same as input file.
56 Quiet mode. Suppress all warning and messages.
58 <DT><B>-V --version
</B>
61 Prints version information.
63 <DT><B>-c --convmode convmode
</B>
66 Sets conversion mode. Simulates dos2unix under SunOS.
68 <DT><B>-o --oldfile file ...
</B>
71 Old file mode. Convert the file and write output to it. The program
72 default to run in this mode. Wildcard names may be used.
74 <DT><B>-n --newfile infile outfile ...
</B>
77 New file mode. Convert the infile and write output to outfile. File names
78 must be given in pairs and wildcard names should NOT be used or you WILL
82 <A NAME=
"lbAF"> </A>
88 Get input from stdin and write output to stdout.
97 Convert and replace a.txt. Convert and replace b.txt.
100 <B>unix2dos a.txt b.txt
</B>
103 <B>unix2dos -o a.txt b.txt
</B>
109 Convert and replace a.txt in ASCII conversion mode.
110 Convert and replace b.txt in ISO conversion mode.
113 <B>dos2unix a.txt -c iso b.txt
</B>
116 <B>dos2unix -c ascii a.txt -c iso b.txt
</B>
122 Convert and replace a.txt while keeping original date stamp.
125 <B>unix2dos -k a.txt
</B>
128 <B>unix2dos -k -o a.txt
</B>
134 Convert a.txt and write to e.txt.
137 <B>unix2dos -n a.txt e.txt
</B>
143 Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt.
146 <B>unix2dos -k -n a.txt e.txt
</B>
152 Convert and replace a.txt. Convert b.txt and write to e.txt.
155 <B>unix2dos a.txt -n b.txt e.txt
</B>
158 <B>unix2dos -o a.txt -n b.txt e.txt
</B>
164 Convert c.txt and write to e.txt. Convert and replace a.txt.
165 Convert and replace b.txt. Convert d.txt and write to f.txt.
168 <B>unix2dos -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt
</B>
172 <A NAME=
"lbAG"> </A>
176 <A NAME=
"lbAH"> </A>
180 The program does not work properly under MSDOS in stdio processing mode.
181 If you know why is that so, please tell me.
183 <A NAME=
"lbAI"> </A>
188 <B><A HREF=
"mailto:blin@socs.uts.edu.au">blin@socs.uts.edu.au
</A></B>
192 <A NAME=
"lbAJ"> </A>
199 Linux
1.2.0 with GNU C
2.5.8
201 SunOS
4.1.3 with GNU C
2.6.3
203 MS-DOS
6.20 with Borland C++
4.02
207 Suggestions and bug reports are welcome.
209 <A NAME=
"lbAK"> </A>
212 <A HREF=
"http://localhost/cgi-bin/man/man2html?1+dos2unix">dos2unix
</A>(
1)
217 <A NAME=
"index"> </A><H2>Index
</H2>
219 <DT><A HREF=
"#lbAB">NAME
</A><DD>
220 <DT><A HREF=
"#lbAC">SYNOPSYS
</A><DD>
221 <DT><A HREF=
"#lbAD">DESCRIPTION
</A><DD>
222 <DT><A HREF=
"#lbAE">OPTIONS
</A><DD>
223 <DT><A HREF=
"#lbAF">EXAMPLES
</A><DD>
224 <DT><A HREF=
"#lbAG">DIAGNOSTICS
</A><DD>
225 <DT><A HREF=
"#lbAH">BUGS
</A><DD>
226 <DT><A HREF=
"#lbAI">AUTHOR
</A><DD>
227 <DT><A HREF=
"#lbAJ">MISCELLANY
</A><DD>
228 <DT><A HREF=
"#lbAK">SEE ALSO
</A><DD>
231 This document was created by
232 <A HREF=
"http://localhost/cgi-bin/man/man2html">man2html
</A>,
233 using the manual pages.
<BR>
234 Time:
11:
52:
21 GMT, December
04,
2002