File: unix2dos.1

package info (click to toggle)
cce 0.36-1.1
  • links: PTS
  • area: main
  • in suites: potato, woody
  • size: 4,168 kB
  • ctags: 1,407
  • sloc: ansic: 15,193; makefile: 83; sh: 23
file content (139 lines) | stat: -rw-r--r-- 2,716 bytes parent folder | download
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
.\" $$Id: unix2dos.1 2.2 1995/03/31 01:50:37 blin Exp blin $$
.TH unix2dos 1 "unix2dos v2.2" "1995.03.31"

.SH NAME

unix2dos \- UNIX to DOS text file format converter

.SH SYNOPSYS

unix2dos [options] [-c convmode] [-o file ...] [-n infile outfile ...]
.PP
Options:
.PP
[-hkqV] [--help] [--keepdate] [--keepperm] [--quiet] [--version]

.SH DESCRIPTION

.PP
This manual page documents dos2unix, the program that converts text 
files in UNIX format to DOS format.

.SH OPTIONS

The following options are available:
.TP
.B \-h --help
Print online help.

.TP
.B \-k --keepdate
Keep the date stamp of output file same as input file.

.TP
.B \-p --keepperm
Keep the permision mode of output file same as input file.

.TP
.B \-q --quiet
Quiet mode. Suppress all warning and messages.

.TP
.B \-V --version
Prints version information.

.TP
.B \-c --convmode convmode
Sets conversion mode. Simulates dos2unix under SunOS.

.TP
.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 ...
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 unix2dos

.LP
Convert and replace a.txt. Convert and replace b.txt.
.IP
.B unix2dos a.txt b.txt
.IP
.B unix2dos -o a.txt b.txt

.LP
Convert and replace a.txt in ASCII conversion mode.
Convert and replace b.txt in ISO conversion mode.
.IP
.B dos2unix a.txt -c iso b.txt
.IP
.B dos2unix -c ascii a.txt -c iso b.txt

.LP
Convert and replace a.txt while keeping original date stamp.
.IP
.B unix2dos -k a.txt
.IP
.B unix2dos -k -o a.txt

.LP
Convert a.txt and write to e.txt.
.IP
.B unix2dos -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 unix2dos -k -n a.txt e.txt 

.LP
Convert and replace a.txt. Convert b.txt and write to e.txt.
.IP
.B unix2dos a.txt -n b.txt e.txt
.IP
.B unix2dos -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 unix2dos -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt

.SH DIAGNOSTICS

.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 AUTHOR

Benjamin Lin - (
.B blin@socs.uts.edu.au
)

.SH MISCELLANY

Tested environment:
.IP
Linux 1.2.0 with GNU C 2.5.8
.IP
SunOS 4.1.3 with GNU C 2.6.3
.IP
MS-DOS 6.20 with Borland C++ 4.02
.PP
Suggestions and bug reports are welcome.

.SH SEE ALSO
dos2unix(1)