2 ===================================================================
3 --- /dev/null 2006-05-26 19:54:25.455722750 -0700
4 +++ ./dos2unix.1 2002-04-10 06:39:04.000000000 -0700
7 +.TH dos2unix 1 "dos2unix v3.0" "1995.03.31"
11 +dos2unix \- DOS/MAC to UNIX text file format converter
15 +dos2unix [options] [-c convmode] [-o file ...] [-n infile outfile ...]
19 +[-hkqV] [--help] [--keepdate] [--quiet] [--version]
24 +This manual page documents dos2unix, the program that converts plain text
25 +files in DOS/MAC format to UNIX format.
29 +The following options are available:
36 +Keep the date stamp of output file same as input file.
40 +Quiet mode. Suppress all warning and messages.
44 +Prints version information.
47 +.B \-c --convmode convmode
48 +Sets conversion mode. Simulates dos2unix under SunOS.
51 +.B \-o --oldfile file ...
52 +Old file mode. Convert the file and write output to it. The program
53 +default to run in this mode. Wildcard names may be used.
56 +.B \-n --newfile infile outfile ...
57 +New file mode. Convert the infile and write output to outfile. File names
58 +must be given in pairs and wildcard names should NOT be used or you WILL
64 +Get input from stdin and write output to stdout.
69 +Convert and replace a.txt. Convert and replace b.txt.
71 +.B dos2unix a.txt b.txt
73 +.B dos2unix -o a.txt b.txt
76 +Convert and replace a.txt in ASCII conversion mode.
77 +Convert and replace b.txt in ISO conversion mode.
78 +Convert c.txt from Mac to Unix ascii format.
80 +.B dos2unix a.txt -c iso b.txt
82 +.B dos2unix -c ascii a.txt -c iso b.txt
84 +.B dos2unix -c mac a.txt b.txt
87 +Convert and replace a.txt while keeping original date stamp.
91 +.B dos2unix -k -o a.txt
94 +Convert a.txt and write to e.txt.
96 +.B dos2unix -n a.txt e.txt
99 +Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt.
101 +.B dos2unix -k -n a.txt e.txt
104 +Convert and replace a.txt. Convert b.txt and write to e.txt.
106 +.B dos2unix a.txt -n b.txt e.txt
108 +.B dos2unix -o a.txt -n b.txt e.txt
111 +Convert c.txt and write to e.txt. Convert and replace a.txt.
112 +Convert and replace b.txt. Convert d.txt and write to f.txt.
114 +.B dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt
120 +The program does not work properly under MSDOS in stdio processing mode.
121 +If you know why is that so, please tell me.
126 +.B <blin@socs.uts.edu.au>
129 +Bernd Johannes Wuebben (mac2unix mode)
130 +.B <wuebben@kde.org>
137 +Linux 1.2.0 with GNU C 2.5.8
139 +SunOS 4.1.3 with GNU C 2.6.3
141 +MS-DOS 6.20 with Borland C++ 4.02
143 +Suggestions and bug reports are welcome.
146 +unix2dos(1) mac2unix(1)