Install mingw-utils-0.3.tar.gz
[msysgit.git] / mingw / doc / dos2unix / dos2unix.html
blob4fbd81d536106b8481b73aafac45c69d5aba0682
1 Content-type: text/html
3 <HTML><HEAD><TITLE>Manpage of dos2unix</TITLE>
4 </HEAD><BODY>
5 <H1>dos2unix</H1>
6 Section: User Commands (1)<BR>Updated: dos2unix v3.0<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 dos2unix - DOS/MAC to UNIX text file format converter
15 <P>
16 <A NAME="lbAC">&nbsp;</A>
17 <H2>SYNOPSYS</H2>
19 <P>
20 dos2unix [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 plain text
35 files in DOS/MAC format to UNIX 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>dos2unix</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>dos2unix a.txt b.txt</B>
102 <DT><DD>
103 <B>dos2unix -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 Convert c.txt from Mac to Unix ascii format.
112 <DL COMPACT>
113 <DT><DD>
114 <B>dos2unix a.txt -c iso b.txt</B>
116 <DT><DD>
117 <B>dos2unix -c ascii a.txt -c iso b.txt</B>
119 <DT><DD>
120 <B>dos2unix -c mac a.txt b.txt</B>
123 </DL>
126 Convert and replace a.txt while keeping original date stamp.
127 <DL COMPACT>
128 <DT><DD>
129 <B>dos2unix -k a.txt</B>
131 <DT><DD>
132 <B>dos2unix -k -o a.txt</B>
135 </DL>
138 Convert a.txt and write to e.txt.
139 <DL COMPACT>
140 <DT><DD>
141 <B>dos2unix -n a.txt e.txt</B>
144 </DL>
147 Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt.
148 <DL COMPACT>
149 <DT><DD>
150 <B>dos2unix -k -n a.txt e.txt </B>
153 </DL>
156 Convert and replace a.txt. Convert b.txt and write to e.txt.
157 <DL COMPACT>
158 <DT><DD>
159 <B>dos2unix a.txt -n b.txt e.txt</B>
161 <DT><DD>
162 <B>dos2unix -o a.txt -n b.txt e.txt</B>
165 </DL>
168 Convert c.txt and write to e.txt. Convert and replace a.txt.
169 Convert and replace b.txt. Convert d.txt and write to f.txt.
170 <DL COMPACT>
171 <DT><DD>
172 <B>dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt</B>
175 </DL>
176 <A NAME="lbAG">&nbsp;</A>
177 <H2>DIAGNOSTICS</H2>
180 <A NAME="lbAH">&nbsp;</A>
181 <H2>BUGS</H2>
184 The program does not work properly under MSDOS in stdio processing mode.
185 If you know why is that so, please tell me.
187 <A NAME="lbAI">&nbsp;</A>
188 <H2>AUTHORS</H2>
191 Benjamin Lin -
192 <B>&lt;<A HREF="mailto:blin@socs.uts.edu.au">blin@socs.uts.edu.au</A>&gt;</B>
196 Bernd Johannes Wuebben (mac2unix mode)
197 <B>&lt;<A HREF="mailto:wuebben@kde.org">wuebben@kde.org</A>&gt;</B>
201 <A NAME="lbAJ">&nbsp;</A>
202 <H2>MISCELLANY</H2>
205 Tested environment:
206 <DL COMPACT>
207 <DT><DD>
208 Linux 1.2.0 with GNU C 2.5.8
209 <DT><DD>
210 SunOS 4.1.3 with GNU C 2.6.3
211 <DT><DD>
212 MS-DOS 6.20 with Borland C++ 4.02
213 </DL>
216 Suggestions and bug reports are welcome.
218 <A NAME="lbAK">&nbsp;</A>
219 <H2>SEE ALSO</H2>
221 <A HREF="http://localhost/cgi-bin/man/man2html?1+unix2dos">unix2dos</A>(1) <A HREF="http://localhost/cgi-bin/man/man2html?1+mac2unix">mac2unix</A>(1)
225 <HR>
226 <A NAME="index">&nbsp;</A><H2>Index</H2>
227 <DL>
228 <DT><A HREF="#lbAB">NAME</A><DD>
229 <DT><A HREF="#lbAC">SYNOPSYS</A><DD>
230 <DT><A HREF="#lbAD">DESCRIPTION</A><DD>
231 <DT><A HREF="#lbAE">OPTIONS</A><DD>
232 <DT><A HREF="#lbAF">EXAMPLES</A><DD>
233 <DT><A HREF="#lbAG">DIAGNOSTICS</A><DD>
234 <DT><A HREF="#lbAH">BUGS</A><DD>
235 <DT><A HREF="#lbAI">AUTHORS</A><DD>
236 <DT><A HREF="#lbAJ">MISCELLANY</A><DD>
237 <DT><A HREF="#lbAK">SEE ALSO</A><DD>
238 </DL>
239 <HR>
240 This document was created by
241 <A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>,
242 using the manual pages.<BR>
243 Time: 11:51:18 GMT, December 04, 2002
244 </BODY>
245 </HTML>