Update /git/ to 1.7.0.2
[msysgit.git] / mingw / doc / unix2dos / unix2dos.html
blob34ebf3d2b541006cbf9154bd05a50765ab740b0c
1 Content-type: text/html
3 <HTML><HEAD><TITLE>Manpage of unix2dos</TITLE>
4 </HEAD><BODY>
5 <H1>unix2dos</H1>
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>
9 <P>
10 <A NAME="lbAB">&nbsp;</A>
11 <H2>NAME</H2>
13 <P>
14 unix2dos - UNIX to DOS text file format converter
15 <P>
16 <A NAME="lbAC">&nbsp;</A>
17 <H2>SYNOPSYS</H2>
19 <P>
20 unix2dos [options] [-c convmode] [-o file ...] [-n infile outfile ...]
21 <P>
23 Options:
24 <P>
26 [-hkqV] [--help] [--keepdate] [--quiet] [--version]
27 <P>
28 <A NAME="lbAD">&nbsp;</A>
29 <H2>DESCRIPTION</H2>
31 <P>
32 <P>
34 This manual page documents dos2unix, the program that converts text
35 files in UNIX format to DOS format.
36 <P>
37 <A NAME="lbAE">&nbsp;</A>
38 <H2>OPTIONS</H2>
40 <P>
41 The following options are available:
42 <DL COMPACT>
43 <DT><B>-h --help</B>
45 <DD>
46 Print online help.
47 <P>
48 <DT><B>-k --keepdate</B>
50 <DD>
51 Keep the date stamp of output file same as input file.
52 <P>
53 <DT><B>-q --quiet</B>
55 <DD>
56 Quiet mode. Suppress all warning and messages.
57 <P>
58 <DT><B>-V --version</B>
60 <DD>
61 Prints version information.
62 <P>
63 <DT><B>-c --convmode convmode</B>
65 <DD>
66 Sets conversion mode. Simulates dos2unix under SunOS.
67 <P>
68 <DT><B>-o --oldfile file ...</B>
70 <DD>
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.
73 <P>
74 <DT><B>-n --newfile infile outfile ...</B>
76 <DD>
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
79 lost your files.
80 <P>
81 </DL>
82 <A NAME="lbAF">&nbsp;</A>
83 <H2>EXAMPLES</H2>
85 <P>
86 <P>
88 Get input from stdin and write output to stdout.
89 <DL COMPACT>
90 <DT><DD>
91 <B>unix2dos</B>
93 <P>
94 </DL>
95 <P>
97 Convert and replace a.txt. Convert and replace b.txt.
98 <DL COMPACT>
99 <DT><DD>
100 <B>unix2dos a.txt b.txt</B>
102 <DT><DD>
103 <B>unix2dos -o a.txt b.txt</B>
106 </DL>
109 Convert and replace a.txt in ASCII conversion mode.
110 Convert and replace b.txt in ISO conversion mode.
111 <DL COMPACT>
112 <DT><DD>
113 <B>dos2unix a.txt -c iso b.txt</B>
115 <DT><DD>
116 <B>dos2unix -c ascii a.txt -c iso b.txt</B>
119 </DL>
122 Convert and replace a.txt while keeping original date stamp.
123 <DL COMPACT>
124 <DT><DD>
125 <B>unix2dos -k a.txt</B>
127 <DT><DD>
128 <B>unix2dos -k -o a.txt</B>
131 </DL>
134 Convert a.txt and write to e.txt.
135 <DL COMPACT>
136 <DT><DD>
137 <B>unix2dos -n a.txt e.txt</B>
140 </DL>
143 Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt.
144 <DL COMPACT>
145 <DT><DD>
146 <B>unix2dos -k -n a.txt e.txt </B>
149 </DL>
152 Convert and replace a.txt. Convert b.txt and write to e.txt.
153 <DL COMPACT>
154 <DT><DD>
155 <B>unix2dos a.txt -n b.txt e.txt</B>
157 <DT><DD>
158 <B>unix2dos -o a.txt -n b.txt e.txt</B>
161 </DL>
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.
166 <DL COMPACT>
167 <DT><DD>
168 <B>unix2dos -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt</B>
171 </DL>
172 <A NAME="lbAG">&nbsp;</A>
173 <H2>DIAGNOSTICS</H2>
176 <A NAME="lbAH">&nbsp;</A>
177 <H2>BUGS</H2>
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">&nbsp;</A>
184 <H2>AUTHOR</H2>
187 Benjamin Lin - (
188 <B><A HREF="mailto:blin@socs.uts.edu.au">blin@socs.uts.edu.au</A></B>
192 <A NAME="lbAJ">&nbsp;</A>
193 <H2>MISCELLANY</H2>
196 Tested environment:
197 <DL COMPACT>
198 <DT><DD>
199 Linux 1.2.0 with GNU C 2.5.8
200 <DT><DD>
201 SunOS 4.1.3 with GNU C 2.6.3
202 <DT><DD>
203 MS-DOS 6.20 with Borland C++ 4.02
204 </DL>
207 Suggestions and bug reports are welcome.
209 <A NAME="lbAK">&nbsp;</A>
210 <H2>SEE ALSO</H2>
212 <A HREF="http://localhost/cgi-bin/man/man2html?1+dos2unix">dos2unix</A>(1)
216 <HR>
217 <A NAME="index">&nbsp;</A><H2>Index</H2>
218 <DL>
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>
229 </DL>
230 <HR>
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
235 </BODY>
236 </HTML>