*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> to_dos (1)              
Title
Content
Arch
Section
 

Contents


TO_DOS(1)							     TO_DOS(1)


NAME    [Toc]    [Back]

     to_dos, to_unix - convert text files between MSDOS	and UNIX

SYNOPSIS    [Toc]    [Back]

     to_dos [ <UNIX file> [<MSDOS file>]]
     to_unix [ <MSDOS file> [<UNIX file>]]

DESCRIPTION    [Toc]    [Back]

     to_dos converts a UNIX text file into a MSDOS text	file by	appending a
     control-M character at the	end of each line and a control-Z character at
     the end of	the file.  to_unix converts a MSDOS text file into a UNIX text
     file by stripping trailing	control-M and control-Z	characters.

     Both commands can take zero, one, or two arguments.  If no	arguments are
     given, the	commands act as	a filter, taking input from stdin and writing
     the modified file to stdout.  When	a single argument is specified,	the
     argument is treated as the	name of	the input file,	and the	resulting
     output is written to stdout.  Finally, if two arguments are provided on
     the command line, the first argument is treated as	the input file and the
     second argument is	treated	as the output file.

EXAMPLES    [Toc]    [Back]

     cat /etc/hosts | to_dos > /dev/ttyd2

     to_unix /etc/hosts	> /dev/ttyd2

     to_dos /etc/hosts /dev/ttyd2

BUGS    [Toc]    [Back]

     Both to_dos and to_unix are unable	to deal	with extremely long lines (>
     4K).


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
pr Linux convert text files for printing
vje2jsytxt Tru64 Convert Japanese text and dictionary files between the JSY, WX, and VJE input methods
txt2jdic Tru64 Convert Japanese text and dictionary files between the JSY, WX, and VJE input methods
jsy2vjetxt Tru64 Convert Japanese text and dictionary files between the JSY, WX, and VJE input methods
jsy2wxtxt Tru64 Convert Japanese text and dictionary files between the JSY, WX, and VJE input methods
jim_convert Tru64 Convert Japanese text and dictionary files between the JSY, WX, and VJE input methods
jdic2txt Tru64 Convert Japanese text and dictionary files between the JSY, WX, and VJE input methods
wx2jsytxt Tru64 Convert Japanese text and dictionary files between the JSY, WX, and VJE input methods
dxmtools Tru64 DOS Tools Graphical User Interface for manipulating files on an MSDOS diskette
dos2unix Tru64 mtools utility to convert a DOS file to UNIX
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service