Unix and Linux Discussions Tagged with txt |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
9,704 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
14,426 |
Shell Programming and Scripting |
|
|
|
8 |
5,201 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,658 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,831 |
Shell Programming and Scripting |
|
|
|
3 |
2,666 |
Shell Programming and Scripting |
|
|
|
1 |
2,406 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
9,584 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,972 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
4,209 |
Shell Programming and Scripting |
|
|
|
2 |
5,527 |
Shell Programming and Scripting |
|
|
|
0 |
1,366 |
Security Advisories (RSS) |
|
|
|
1 |
12,367 |
Shell Programming and Scripting |
|
|
|
0 |
1,231 |
Software Releases - RSS News |
|
|
|
1 |
1,706 |
Shell Programming and Scripting |
|
|
|
3 |
4,502 |
Windows & DOS: Issues & Discussions |
|
|
|
0 |
1,331 |
Software Releases - RSS News |
|
|
|
3 |
2,542 |
Shell Programming and Scripting |
|
|
|
0 |
1,264 |
Software Releases - RSS News |
|
|
|
1 |
45,887 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
4,123 |
Shell Programming and Scripting |
|
|
|
10 |
2,971 |
Shell Programming and Scripting |
|
|
|
7 |
3,667 |
UNIX for Dummies Questions & Answers |
|
|
|
12 |
30,403 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,077 |
Shell Programming and Scripting |
|
|
|
4 |
72,565 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
27,679 |
Programming |
|
|
|
2 |
2,819 |
UNIX for Advanced & Expert Users |
|
|
|
7 |
73,230 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
6,276 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,953 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
4,453 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,746 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
9,798 |
Programming |
|
|
|
4 |
6,020 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,278 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,136 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
54,841 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,068 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
44,589 |
UNIX for Advanced & Expert Users |
dos2unix(1) General Commands Manual dos2unix(1)
NAME
dos2unix - DOS/MAC to UNIX text file format converter
SYNOPSYS
dos2unix [options] [-c convmode] [-o file ...] [-n infile outfile ...]
Options:
[-hkqV] [--help] [--keepdate] [--quiet] [--version]
DESCRIPTION
This manual page documents dos2unix, the program that converts plain text files in DOS/MAC format to UNIX format.
OPTIONS
The following options are available:
-h --help
Print online help.
-k --keepdate
Keep the date stamp of output file same as input file.
-q --quiet
Quiet mode. Suppress all warning and messages.
-V --version
Prints version information.
-c --convmode convmode
Sets conversion mode. Simulates dos2unix under SunOS.
-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.
-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.
EXAMPLES
Get input from stdin and write output to stdout.
dos2unix
Convert and replace a.txt. Convert and replace b.txt.
dos2unix a.txt b.txt
dos2unix -o a.txt b.txt
Convert and replace a.txt in ASCII conversion mode. Convert and replace b.txt in ISO conversion mode. Convert c.txt from Mac to Unix
ascii format.
dos2unix a.txt -c iso b.txt
dos2unix -c ascii a.txt -c iso b.txt
dos2unix -c mac a.txt b.txt
Convert and replace a.txt while keeping original date stamp.
dos2unix -k a.txt
dos2unix -k -o a.txt
Convert a.txt and write to e.txt.
dos2unix -n a.txt e.txt
Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt.
dos2unix -k -n a.txt e.txt
Convert and replace a.txt. Convert b.txt and write to e.txt.
dos2unix a.txt -n b.txt e.txt
dos2unix -o a.txt -n b.txt e.txt
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.
dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt
DIAGNOSTICS
BUGS
The program does not work properly under MSDOS in stdio processing mode. If you know why is that so, please tell me.
AUTHORS
Benjamin Lin - <blin@socs.uts.edu.au>
Bernd Johannes Wuebben (mac2unix mode) <wuebben@kde.org>
MISCELLANY
Tested environment:
Linux 1.2.0 with GNU C 2.5.8
SunOS 4.1.3 with GNU C 2.6.3
MS-DOS 6.20 with Borland C++ 4.02
Suggestions and bug reports are welcome.
SEE ALSO
unix2dos(1) mac2unix(1)
1995.03.31 dos2unix v3.0 dos2unix(1)