<?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: dos2ux || ux2dos in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533803#M651973</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;As you have seen, using the 'file' command will tell you that the file is "ascii text" regardless of whether or not its line terminators are simple newlines (\012) or carriage-return/newlines (\015\012) sequences.&lt;BR /&gt;&lt;BR /&gt;To determine if you have carriage-return (CR)/newline(CRLF) sequences you can examine the file with 'cat', 'vis' or a commandline Perl script:&lt;BR /&gt;&lt;BR /&gt;# cat -etv file&lt;BR /&gt;&lt;BR /&gt;...will show ^M for a CR&lt;BR /&gt;&lt;BR /&gt;# vis file&lt;BR /&gt;&lt;BR /&gt;...will show \r lfor a CR&lt;BR /&gt;&lt;BR /&gt;# perl -ne 'print if m{\r\n}' file&lt;BR /&gt;&lt;BR /&gt;...will print _only_ lines with CRLF sequences, if any.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Sat, 14 Nov 2009 16:01:31 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2009-11-14T16:01:31Z</dc:date>
    <item>
      <title>dos2ux || ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533797#M651967</link>
      <description>Hi Admins,&lt;BR /&gt; How do I find that the file which is transferred from windows machine to HP-UX in Binary mode or ASCII mode?&lt;BR /&gt;&lt;BR /&gt;Assume I have set the file transfer mode as auto select in ftp and transferring the file.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;V.P</description>
      <pubDate>Sat, 14 Nov 2009 07:12:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533797#M651967</guid>
      <dc:creator>V.P</dc:creator>
      <dc:date>2009-11-14T07:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux || ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533798#M651968</link>
      <description>If you transfered it wrong, you'll see lots of extra CRs at the end of each line.&lt;BR /&gt;Or if you use dos2ux(1) on each file, nothing will change.&lt;BR /&gt;&lt;BR /&gt;If you have binary files that have been transferred in ASCII, they will be corrupted.</description>
      <pubDate>Sat, 14 Nov 2009 07:20:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533798#M651968</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-14T07:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux || ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533799#M651969</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick response.&lt;BR /&gt;&lt;BR /&gt;Any command in HP-UX to find the transferred file is in ASCII mode or Binary mode? &lt;BR /&gt;&lt;BR /&gt;I transferred one file from windows desktop to HP-UX box and using â  viâ   editor, I was unable to find the ^M character. But when I executed the script, script terminated by giving the error ^M at the end of the command line.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;V.P&lt;BR /&gt;</description>
      <pubDate>Sat, 14 Nov 2009 07:27:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533799#M651969</guid>
      <dc:creator>V.P</dc:creator>
      <dc:date>2009-11-14T07:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux || ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533800#M651970</link>
      <description>&amp;gt;&amp;gt;Any command in HP-UX to find the transferred file is in ASCII mode or Binary mode? &amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;Once file has been transfered you can use&lt;BR /&gt;&lt;BR /&gt;file command &lt;BR /&gt;&lt;BR /&gt;file &lt;FILE_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FILE_NAME&gt;</description>
      <pubDate>Sat, 14 Nov 2009 07:58:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533800#M651970</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2009-11-14T07:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux || ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533801#M651971</link>
      <description>&lt;!--!*#--&gt;Hi Johnson,&lt;BR /&gt;&lt;BR /&gt;Thanks for your response.&lt;BR /&gt;&lt;BR /&gt;I have done the test file transfer (CMR3423.sh is in binary format &amp;amp; CMR.sh is in ASCII format). The output of file &lt;FILE_NAME&gt; gave a similar output.&lt;BR /&gt;&lt;BR /&gt;Could you please check the same?&lt;BR /&gt;&lt;BR /&gt;Steps: &lt;BR /&gt;&lt;BR /&gt;Hostname /tmp &amp;gt;file CMR3423.sh&lt;BR /&gt;CMR3423.sh:     English text&lt;BR /&gt;&lt;BR /&gt;Hostname /tmp &amp;gt;dos2ux CMR3423.sh &amp;gt; CMR.sh&lt;BR /&gt;&lt;BR /&gt;Hostname /tmp &amp;gt;file CMR.sh&lt;BR /&gt;CMR.sh:         English text&lt;BR /&gt;&lt;BR /&gt;Notepad enclosed for further understanding.&lt;BR /&gt;&lt;/FILE_NAME&gt;</description>
      <pubDate>Sat, 14 Nov 2009 08:17:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533801#M651971</guid>
      <dc:creator>V.P</dc:creator>
      <dc:date>2009-11-14T08:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux || ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533802#M651972</link>
      <description>&amp;gt;Any command in HP-UX to find the transferred file is in ASCII mode or Binary mode?&lt;BR /&gt;&lt;BR /&gt;Not really.  Nobody cares much about those CRs if there is lots of ASCII data.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I was unable to find the ^M character.&lt;BR /&gt;&lt;BR /&gt;Your attached file shows ^M.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I have done the test file transfer (CMR3423.sh is in binary format &amp;amp; CMR.sh is in ASCII format).&lt;BR /&gt;&lt;BR /&gt;Yes, the first has those CRs(^M) and the second is fixed.</description>
      <pubDate>Sat, 14 Nov 2009 11:09:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533802#M651972</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-14T11:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux || ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533803#M651973</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;As you have seen, using the 'file' command will tell you that the file is "ascii text" regardless of whether or not its line terminators are simple newlines (\012) or carriage-return/newlines (\015\012) sequences.&lt;BR /&gt;&lt;BR /&gt;To determine if you have carriage-return (CR)/newline(CRLF) sequences you can examine the file with 'cat', 'vis' or a commandline Perl script:&lt;BR /&gt;&lt;BR /&gt;# cat -etv file&lt;BR /&gt;&lt;BR /&gt;...will show ^M for a CR&lt;BR /&gt;&lt;BR /&gt;# vis file&lt;BR /&gt;&lt;BR /&gt;...will show \r lfor a CR&lt;BR /&gt;&lt;BR /&gt;# perl -ne 'print if m{\r\n}' file&lt;BR /&gt;&lt;BR /&gt;...will print _only_ lines with CRLF sequences, if any.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 14 Nov 2009 16:01:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533803#M651973</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-11-14T16:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux || ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533804#M651974</link>
      <description>Thanks JRF.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;V.P</description>
      <pubDate>Mon, 16 Nov 2009 17:04:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-ux2dos/m-p/4533804#M651974</guid>
      <dc:creator>V.P</dc:creator>
      <dc:date>2009-11-16T17:04:14Z</dc:date>
    </item>
  </channel>
</rss>

