summaryrefslogtreecommitdiff
blob: 7e4b70591a3880332ef559d4a17aae4e85246172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
Ripped from Fedora

The dos2unix man page examples are confusing.
For instance, one piece of text mentions "c.txt", but that file
isn't used in the following example.

Patch by Bill Anderson
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=57507

--- dos2unix-3.1/dos2unix.1
+++ dos2unix-3.1/dos2unix.1
@@ -4,127 +4,104 @@
 .SH NAME
 
 dos2unix \- DOS/MAC to UNIX text file format converter
+.SH SYNOPSIS
 
-.SH SYNOPSYS
-
-dos2unix [options] [-c convmode] [-o file ...] [-n infile outfile ...]
-.PP
-Options:
-.PP
-[-hkqV] [--help] [--keepdate] [--quiet] [--version]
+\fBdos2unix\fR [options] [\-c convmode] [\-o file ...] [\-n infile outfile ...]
 
+\fBdos2unix\fR [\-hkqV] [\-\-help] [\-\-keepdate] [\-\-quiet] [\-\-version]
 .SH DESCRIPTION
 
 .PP
-This manual page documents dos2unix, the program that converts plain text
+This manual page documents \fBdos2unix\fR, the program that converts plain text
 files in DOS/MAC format to UNIX format.
-
 .SH OPTIONS
 
-The following options are available:
 .TP
-.B \-h --help
+.B \-h \-\-help
 Print online help.
-
 .TP
-.B \-k --keepdate
+.B \-k \-\-keepdate
 Keep the date stamp of output file same as input file.
-
 .TP
-.B \-q --quiet
+.B \-q \-\-quiet
 Quiet mode. Suppress all warning and messages.
-
 .TP
-.B \-V --version
+.B \-V \-\-version
 Prints version information.
-
 .TP
-.B \-c --convmode convmode
-Sets conversion mode. Simulates dos2unix under SunOS.
-
+.B \-c \-\-convmode convmode
+Sets conversion mode.  convmode is one of:
+.B ASCII, 7bit, ISO, Mac
+with ASCII being the default.  Simulates dos2unix under SunOS.
 .TP
-.B \-o --oldfile file ...
+.B \-o \-\-oldfile file ...
 Old file mode. Convert the file and write output to it. The program 
 default to run in this mode. Wildcard names may be used.
-
 .TP
-.B \-n --newfile infile outfile ...
+.B \-n \-\-newfile infile outfile ...
 New file mode. Convert the infile and write output to outfile. File names
 must be given in pairs and wildcard names should NOT be used or you WILL 
 lost your files. 
-
 .SH EXAMPLES
 
 .LP
 Get input from stdin and write output to stdout.
 .IP
 .B dos2unix
-
 .LP
 Convert and replace a.txt. Convert and replace b.txt.
 .IP
 .B dos2unix a.txt b.txt
 .IP
-.B dos2unix -o a.txt b.txt
-
+.B dos2unix \-o a.txt b.txt
 .LP
 Convert and replace a.txt in ASCII conversion mode. 
+.IP 
+.B dos2unix a.txt \-c iso b.txt
+.LP
 Convert and replace b.txt in ISO conversion mode.
+.IP 
+.B dos2unix \-c ascii a.txt \-c iso b.txt
+.LP
 Convert c.txt from Mac to Unix ascii format.
 .IP
-.B dos2unix a.txt -c iso b.txt
-.IP
-.B dos2unix -c ascii a.txt -c iso b.txt
-.IP
-.B dos2unix -c mac a.txt  b.txt
-
+.B dos2unix \-c mac c.txt  b.txt
 .LP
 Convert and replace a.txt while keeping original date stamp.
 .IP
-.B dos2unix -k a.txt
+.B dos2unix \-k a.txt
 .IP
-.B dos2unix -k -o a.txt
-
+.B dos2unix \-k \-o a.txt
 .LP
 Convert a.txt and write to e.txt.
 .IP
-.B dos2unix -n a.txt e.txt
-
+.B dos2unix \-n a.txt e.txt
 .LP
 Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt.
 .IP
-.B dos2unix -k -n a.txt e.txt 
-
+.B dos2unix \-k \-n a.txt e.txt 
 .LP
 Convert and replace a.txt. Convert b.txt and write to e.txt.
 .IP
-.B dos2unix a.txt -n b.txt e.txt
+.B dos2unix a.txt \-n b.txt e.txt
 .IP
-.B dos2unix -o a.txt -n b.txt e.txt
-
+.B dos2unix \-o a.txt \-n b.txt e.txt
 .LP
 Convert c.txt and write to e.txt. Convert and replace a.txt.
 Convert and replace b.txt. Convert d.txt and write to f.txt.
 .IP
-.B dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt
-
-.SH DIAGNOSTICS
-
+.B dos2unix \-n c.txt e.txt \-o a.txt b.txt \-n d.txt f.txt
 .SH BUGS
 
 The program does not work properly under MSDOS in stdio processing mode. 
 If you know why is that so, please tell me.
-
 .SH AUTHORS
 
-Benjamin Lin -
+Benjamin Lin
 .B <blin@socs.uts.edu.au>
-
-
+.br
 Bernd Johannes Wuebben (mac2unix mode) 
 .B <wuebben@kde.org>
-
-
 .SH MISCELLANY
 
 Tested environment:
@@ -136,7 +114,6 @@
 MS-DOS 6.20 with Borland C++ 4.02
 .PP
 Suggestions and bug reports are welcome.
-
 .SH SEE ALSO
-unix2dos(1) mac2unix(1)
-
+.BR unix2dos (1),
+.BR mac2unix (1)