<?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 dos2ux command tool in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299701#M873705</link>
    <description>I have a bulk of files to be transfer to my HP-UX from my MS Windows environment to HP-UX. I have use CIFS client to mount my Windows NT/2003 shared to my HP-UX. From that point, I used the mv command to transfer data to my HP-UX. When i use the vi command. I saw ^M character at the end of each line. I know dos2ux will do the trick but i have a bulk of files to be transfer/move to my HP-UX for compression and transfer of files to my clients. Is there a way to eliminate the insertion of ^M character during transfer or how will i use the  dos2ux tool to remove the ^M automatically?</description>
    <pubDate>Tue, 08 Jun 2004 20:58:48 GMT</pubDate>
    <dc:creator>Pando</dc:creator>
    <dc:date>2004-06-08T20:58:48Z</dc:date>
    <item>
      <title>dos2ux command tool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299701#M873705</link>
      <description>I have a bulk of files to be transfer to my HP-UX from my MS Windows environment to HP-UX. I have use CIFS client to mount my Windows NT/2003 shared to my HP-UX. From that point, I used the mv command to transfer data to my HP-UX. When i use the vi command. I saw ^M character at the end of each line. I know dos2ux will do the trick but i have a bulk of files to be transfer/move to my HP-UX for compression and transfer of files to my clients. Is there a way to eliminate the insertion of ^M character during transfer or how will i use the  dos2ux tool to remove the ^M automatically?</description>
      <pubDate>Tue, 08 Jun 2004 20:58:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299701#M873705</guid>
      <dc:creator>Pando</dc:creator>
      <dc:date>2004-06-08T20:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux command tool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299702#M873706</link>
      <description>instead of moving the file:&lt;BR /&gt;mv wfile ufile&lt;BR /&gt;use dos2ux&lt;BR /&gt;dos2ux &amp;lt; wfile &amp;gt; ufile</description>
      <pubDate>Tue, 08 Jun 2004 21:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299702#M873706</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2004-06-08T21:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux command tool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299703#M873707</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;i believe u have come to a dead end if u want to remove ^M automatically using dos2ux via copying the file from the share path:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=30923" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=30923&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;i too get this problem. with ftp, i have to indicate ascii transfer mode so as not to get ^M in my files. if u choose auto transfer mode, ^M will still appear.&lt;BR /&gt;&lt;BR /&gt;regards.</description>
      <pubDate>Tue, 08 Jun 2004 21:14:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299703#M873707</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2004-06-08T21:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux command tool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299704#M873708</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As Joseph has mentioned, you will have to use the bin command before you start the process of copying files from Windows to HP-UX. &lt;BR /&gt;&lt;BR /&gt;Also, refer to the foll. link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.karkomaonline.com/article.php?story=20031115012117477" target="_blank"&gt;http://www.karkomaonline.com/article.php?story=20031115012117477&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hemanth</description>
      <pubDate>Tue, 08 Jun 2004 22:40:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299704#M873708</guid>
      <dc:creator>Hemanth Gurunath Basrur</dc:creator>
      <dc:date>2004-06-08T22:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux command tool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299705#M873709</link>
      <description>Hi there.&lt;BR /&gt;Just my 2 cts.&lt;BR /&gt;On FTP transfer of ASCII files you have to tell the ftp, that you want to transfer an ASCII file.&lt;BR /&gt;Looks like this :&lt;BR /&gt;&lt;BR /&gt;ftp&amp;gt; ascii&lt;BR /&gt;200 Type set to A. ( should be the reply )&lt;BR /&gt;&lt;BR /&gt;for binary files ( executables / zipped files etc ) use this :&lt;BR /&gt;&lt;BR /&gt;ftp&amp;gt; bin&lt;BR /&gt;200 Type set to I. ( should be the reply )&lt;BR /&gt;&lt;BR /&gt;On ASCII transfer from Windows to Unix the ^M ( CR / LF ) will be scratched on the unix file.&lt;BR /&gt;&lt;BR /&gt;This will also add the ^M on a transfer from Unix to Windows.&lt;BR /&gt;&lt;BR /&gt;by the way :&lt;BR /&gt;&lt;BR /&gt;ftp&amp;gt; ?  (shows all available ftp-commands )&lt;BR /&gt;&lt;BR /&gt;Hope i could help.&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jun 2004 00:43:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299705#M873709</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2004-06-09T00:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux command tool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299706#M873710</link>
      <description>A way to check if your files are DOS ASCII files:&lt;BR /&gt;&lt;BR /&gt;awk '/\r$/ { rec++}&lt;BR /&gt;END {if (NR-1 == rec) { print "DOS FILE" }}'&lt;BR /&gt;&lt;BR /&gt;This way you know which files need to be put through dos2ux and which not.&lt;BR /&gt;&lt;BR /&gt;So in your case, if you put the awk command in a script called chkdos, you can convert all DOS ascii file using this shell command:&lt;BR /&gt;&lt;BR /&gt;find . -type f -print | while read fname&lt;BR /&gt;do&lt;BR /&gt;   if [ "$(chkdos &amp;lt;$fname)" -eq "DOS FILE" ]&lt;BR /&gt;   then&lt;BR /&gt;      dos2ux &amp;lt;$fname &amp;gt;/tmp/tmpf&lt;BR /&gt;      cp /tmp/tmpf $fname&lt;BR /&gt;   fi&lt;BR /&gt;done</description>
      <pubDate>Wed, 09 Jun 2004 01:14:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299706#M873710</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-06-09T01:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux command tool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299707#M873711</link>
      <description>If it's a one off, then do as others have suggested. I do a lot of file transfers from unix to windows and I either use QVT/FTP or Reflection for Unix and Digital. Both just like using Windows Explore.</description>
      <pubDate>Thu, 10 Jun 2004 01:08:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299707#M873711</guid>
      <dc:creator>Kyri Pilavakis</dc:creator>
      <dc:date>2004-06-10T01:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: dos2ux command tool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299708#M873712</link>
      <description>Perhaps this technique would be convenient for you.&lt;BR /&gt;&lt;BR /&gt;- put the file(s) (and directory(ies)) you want to move from the Windows&lt;BR /&gt;  machine into a .zip file, say dosfiles.zip&lt;BR /&gt;- ftp dosfiles.zip file to the unix machine using binary mode&lt;BR /&gt;- on the unix machine use info-zip's unzip [1] command with the -a option to&lt;BR /&gt;  extract dosfiles.zip's contents.  unzip's man page says:&lt;BR /&gt;&lt;BR /&gt;  "The -a option causes files identified by zip as text files (those with the `t'&lt;BR /&gt;    label  in  zipinfo  listings,  rather  than  `b')  to  be automatically extracted&lt;BR /&gt;    as such, converting line endings, end-of-file  characters  and  the character&lt;BR /&gt;    set itself as necessary."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[1] &lt;A href="http://www.info-zip.org/UnZip.htm" target="_blank"&gt;http://www.info-zip.org/UnZip.htm&lt;/A&gt;</description>
      <pubDate>Sun, 11 Jul 2004 20:02:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dos2ux-command-tool/m-p/3299708#M873712</guid>
      <dc:creator>Raymond Phillips</dc:creator>
      <dc:date>2004-07-11T20:02:24Z</dc:date>
    </item>
  </channel>
</rss>

