unix2dos man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

UNIX2DOS(1)							   UNIX2DOS(1)

NAME
       unix2dos - convert text file from ISO format to DOS format

SYNOPSIS
       unix2dos [-ascii] [-iso] [-7]
	    [-437 | -850 | -860 | -863 | -865] originalfile convertedfile

DESCRIPTION
       The  unix2dos  utility  converts	 ISO standard characters to the corre‐
       sponding characters in the DOS extended character set.

       This command may be invoked from either	DOS  or	 SunOS.	 However,  the
       filenames  must	conform to the conventions of the environment in which
       the command is invoked.

       If the original file and the converted file  are	 the  same,   unix2dos
       will rewrite the original file after converting it.

OPTIONS
       The following options are supported:

       -ascii
		 Adds  carriage returns and converts end of file characters in
		 SunOS format text files to conform to DOS requirements.

       -iso
		 This is the default. Converts ISO standard characters to  the
		 corresponding character in the DOS extended character set.

       -7
		 Converts 8 bit SunOS characters to 7 bit DOS characters.

       On  non-i386 systems, unix2dos will attempt to obtain the keyboard type
       to determine which code page to use. Otherwise, the default is US.  The
       user may override the code page with one of the following options:

       -437
	       Use US code page

       -850
	       Use multilingual code page

       -860
	       Use Portuguese code page

       -863
	       Use French Canadian code page

       -865
	       Use Danish code page

OPERANDS
       The following operands are required:

       originalfile
			 The  original	file  in ISO format that is being con‐
			 verted to DOS format.

       convertedfile
			 The new file in DOS format that  has  been  converted
			 from the original ISO file format.

SEE ALSO
       dos2unix(1), ls(1), attributes(5)

DIAGNOSTICS
       File filename not found, or no read permission

	   The	input  file  you  specified does not exist, or you do not have
	   read permission. Check with the SunOS command, ls -l (see ls(1)).

       Bad output filename filename, or no write permission

	   The output file you specified is either invalid, or you do not have
	   write  permission  for that file or the directory that contains it.
	   Check also that the drive or diskette is not write-protected.

       Error while writing to temporary file

	   An error occurred while  converting	your  file,  possibly  because
	   there is not enough space on the current drive. Check the amount of
	   space on the current drive using the DIR command. Also  be  certain
	   that the default diskette or drive is write-enabled (not write-pro‐
	   tected). Notice that when this  error  occurs,  the	original  file
	   remains intact.

       Translated tmpfile name = filename.
       Could not rename tmpfile to filename.

	   The	program	 could	not  perform the final step in converting your
	   file. Your converted file is stored under the name indicated on the
	   second line of this message.

				 Sep 14, 2000			   UNIX2DOS(1)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net