Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (SunOS-4.1.3)
Apropos / Subsearch:
optional field

DOS2UNIX(1)                 General Commands Manual                DOS2UNIX(1)

       dos2unix - convert text file from DOS format to ISO format

       dos2unix [ -ascii ] [ -iso ] [ -7 ] originalfile convertedfile

       dos2unix  converts  characters in the DOS extended character set to the
       corresponding ISO standard characters.

       This command can 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, dos2unix will
       rewrite the original file after converting it.

       -ascii Removes extra carriage returns and converts end of file  charac-
              ters in DOS format text files to conform to SunOS requirements.

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

       -7     Convert  8 bit DOS graphics characters to 7 bit space characters
              so that SunOS can read the file.

       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 ls -l command).

       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  con-
              tains  it.   Check also that the drive or diskette is not write-

       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-protected).   Note  that  when  this  error
              occurs, the original file remains intact.

       Could not rename temporary file to filename.
       Translated temporary file name = 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.
       dos(1), unix2dos(1)
       Sun386i Advanced Skills
       Sun MS-DOS Reference Manual

                                7 October 1990                     DOS2UNIX(1)