<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: dos2unix command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549408#M839788</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Moreover it is stored in /bin directory of your HP Box.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
    <pubDate>Sun, 22 May 2005 03:41:27 GMT</pubDate>
    <dc:creator>Devender Khatana</dc:creator>
    <dc:date>2005-05-22T03:41:27Z</dc:date>
    <item>
      <title>dos2unix command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549406#M839786</link>
      <description>Dear All, &lt;BR /&gt;&lt;BR /&gt;i do have regular problems of files being opend on wordpad or notepad and then when i move them to HPUX they are damaged and i need to remove charcters from them like carriage return.&lt;BR /&gt;&lt;BR /&gt;and i dont know how to resolve this, someone told me about do2unix, can someone tell me what does it do ? and where can i find this command on the HPUX machine ? &lt;BR /&gt;the thing is i think my .profile file was changed due to this and now i am unable to login using CDE since the file is changed or something like that. someone can help me plz ? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Sun, 22 May 2005 02:53:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549406#M839786</guid>
      <dc:creator>Ahmed_41</dc:creator>
      <dc:date>2005-05-22T02:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549407#M839787</link>
      <description>On HP-UX command is called dos2ux and you can use it as follows (dos_file is file with DOS style line endings and unix_file is UNIX counterpart).&lt;BR /&gt;&lt;BR /&gt;$ dos2ux dos_file &amp;gt; unix_file</description>
      <pubDate>Sun, 22 May 2005 03:18:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549407#M839787</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-05-22T03:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549408#M839788</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Moreover it is stored in /bin directory of your HP Box.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Sun, 22 May 2005 03:41:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549408#M839788</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-05-22T03:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549409#M839789</link>
      <description>Instead of using notepad or wordpad you should rather use Ultraedit which is a wonderful editor which can manage all text formats:&lt;BR /&gt;dos, unix, mac and propose you to save in any of these formats&lt;BR /&gt;&lt;BR /&gt;It also has an explicit conversion function</description>
      <pubDate>Sun, 22 May 2005 07:40:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549409#M839789</guid>
      <dc:creator>Laurent Laperrousaz</dc:creator>
      <dc:date>2005-05-22T07:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549410#M839790</link>
      <description>Hi,&lt;BR /&gt;When u copy i.e. ftp such file to Unix System first execute this command and then edit e.g. you have copied "file1" then:&lt;BR /&gt;&lt;BR /&gt;# cat file | col -bx &amp;gt; file2&lt;BR /&gt;&lt;BR /&gt;Now you can edit file2 which is readable.&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;BR /&gt;Regards,</description>
      <pubDate>Sun, 22 May 2005 13:51:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549410#M839790</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2005-05-22T13:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549411#M839791</link>
      <description>Hi Ahmed,&lt;BR /&gt;&lt;BR /&gt;Try:&lt;BR /&gt;cp .profile .profile.OLD&lt;BR /&gt;dos2ux .profile.OLD &amp;gt; profile&lt;BR /&gt;&lt;BR /&gt;If that doesn't help, consider recovering your .profile from a backup?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Renarios&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 22 May 2005 14:43:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549411#M839791</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2005-05-22T14:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549412#M839792</link>
      <description>Just to help clarify a bit--your files are not damaged. You are probably sharing files with SAMBA or CIFS or using ftp to transfer the files from your PC. But the DOS/Windows filesystem is incompatible with other operating systems like Unix. This is because DOS was designed to terminate each line of a plain ASCII file with CR/LF (carriage return and linefeed) while Unix systems use just the LF character. Other operating systems such as mainframes have dozens of incompatible file formats.&lt;BR /&gt; &lt;BR /&gt;So when you edit files on a PC, they look fine on the PC but look strange on HP-UX. But the reverse is also true. Create a simple file on HP-UX and transfer it using ftp binary mode and in Notepad, the file will have little black squares where the next line should be. That's because Notepad expects 2 characters (CR/LF) and not just the LF which is standard for Unix. Note that if you open the file with Wordpad, it will appear correct but that's because Wordpad uses a single LF as a soft-return marker. Other operating systems are even more incompatible.&lt;BR /&gt; &lt;BR /&gt;The good news is that you don't need dos2ux (or ux2dos) to exchange files. ftp has a special option called ASCII which performs the required translation. Your ftp may default to BINARY which does nothing so when transferring text files, override the ftp setting with the ASCII command. This will work correctly between all operating systems.</description>
      <pubDate>Sun, 22 May 2005 21:00:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2unix-command/m-p/3549412#M839792</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-05-22T21:00:52Z</dc:date>
    </item>
  </channel>
</rss>

