<?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: Filesize limitations using ux2dos in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137685#M317118</link>
    <description>Arturo wrote&amp;gt;&amp;gt; # In lieu of 'dos2ux'&lt;BR /&gt;perl -pi.old -e' s!\r\n!\n!;s!\032!! if eof' file.in &lt;BR /&gt;&lt;BR /&gt;Word of warning... this will NOT produce the same results as dos2us.&lt;BR /&gt;I believe that perl I showed in a reply a day is also subtly different.&lt;BR /&gt;&lt;BR /&gt;The problem here is that the real dos2ux stops at the first ^Z, not just at eof.&lt;BR /&gt;The problem with mine it that it does not output all chars befor the ^Z.&lt;BR /&gt;CLoser:&lt;BR /&gt;perl -pe 's/\r$//; if (/(.*?)\032/) {print $1."\n"; last}' x.dos &amp;gt; tmp.tmp&lt;BR /&gt;&lt;BR /&gt;Also.. iirc 'eof' is a little expendsive in that it gets the potential eof byte, checks it, and ungets it. &lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
    <pubDate>Sun, 03 Feb 2008 05:17:02 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2008-02-03T05:17:02Z</dc:date>
    <item>
      <title>Filesize limitations using ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137678#M317111</link>
      <description>When attempting to execute the ux2dos command on HP UX 11 created files that are &amp;gt; 2 gb, I'm getting an error indicating that the execution of ux2dos cannot find the input file.  Files less than 2 gb are found and processed without any problems.  Is anyone aware of a input file size limitation when using the ux2dos command or if there are undocument parms to deal with large files? &lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 30 Jan 2008 16:18:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137678#M317111</guid>
      <dc:creator>Charlie Shore</dc:creator>
      <dc:date>2008-01-30T16:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filesize limitations using ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137679#M317112</link>
      <description>It may be the file you are creating is having issues.  Unless you have largefiles turned on the filesystem you are creating a new file it will fail.&lt;BR /&gt;&lt;BR /&gt;If you don't have largefiles turned on, your limited to 2 gigs in file size.&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jan 2008 16:20:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137679#M317112</guid>
      <dc:creator>Dave Hutton</dc:creator>
      <dc:date>2008-01-30T16:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filesize limitations using ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137680#M317113</link>
      <description>Charlie,&lt;BR /&gt;&lt;BR /&gt;have a look at this doc.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www11.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&amp;amp;docId=emr_na-c00936500-2" target="_blank"&gt;http://www11.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&amp;amp;docId=emr_na-c00936500-2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Title: dos2ux and ux2dos do not support large files greater than 2gb&lt;BR /&gt;Document ID: emr_na-c00936500-2&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 30 Jan 2008 16:24:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137680#M317113</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2008-01-30T16:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Filesize limitations using ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137681#M317114</link>
      <description>Hmmm,&lt;BR /&gt;&lt;BR /&gt;Can you hide the large file in a pipe?&lt;BR /&gt;Does this work?&lt;BR /&gt;# cat dosfile | dos2ux | cat &amp;gt; unixfile ?&lt;BR /&gt;&lt;BR /&gt;Given to volume of data to fix up, maybe you want to consider revisiting the source and/or target of this data.&lt;BR /&gt;&lt;BR /&gt;Maybe the source can be tought not to add the extra carriage-return at line end. For example by using ASCII mode for an FTP.&lt;BR /&gt;&lt;BR /&gt;Maybe the target can be tought to ignore the extra character?&lt;BR /&gt;&lt;BR /&gt;And maybe you can just roll your own filter, possibly with perl:&lt;BR /&gt;For example&lt;BR /&gt;&lt;BR /&gt;perl -pe 's/\r$//; last if /^\032$/' dos &amp;gt; unix&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jan 2008 16:43:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137681#M317114</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-01-30T16:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filesize limitations using ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137682#M317115</link>
      <description>&lt;!--!*#--&gt;On some UNIX(-like) systems, large files are&lt;BR /&gt;invisible to programs built without&lt;BR /&gt;large-file support.  This would seem to be&lt;BR /&gt;the case here.&lt;BR /&gt;&lt;BR /&gt;A more tolerant approach, which would have&lt;BR /&gt;been useful here, would be to go ahead and&lt;BR /&gt;try to use the file, and wait for seek/tell&lt;BR /&gt;operations to fail (invisibly).  That&lt;BR /&gt;approach can cause file corruption when a&lt;BR /&gt;seek wraps around the 2GB limit, leaving the&lt;BR /&gt;program looking at the front of the file when&lt;BR /&gt;it should have been somewhere in the middle.&lt;BR /&gt;Which, I assume, is why some vendors chose to&lt;BR /&gt;fail at the open, before any damage is done.&lt;BR /&gt;&lt;BR /&gt;One solution is to get the source code, and&lt;BR /&gt;build the program with large-file support.&lt;BR /&gt;For a program like this, which (I'd guess)&lt;BR /&gt;does no seek/tell operations, it should be&lt;BR /&gt;pretty easy.&lt;BR /&gt;&lt;BR /&gt;If the program can be used as a filter, which &lt;BR /&gt;would also seem to be true here, then&lt;BR /&gt;redirecting standard input and/or output can&lt;BR /&gt;work around a limitation like this.  That is,&lt;BR /&gt;a command like:&lt;BR /&gt;&lt;BR /&gt;   ux2dos &amp;lt; in_file &amp;gt; out_file&lt;BR /&gt;&lt;BR /&gt;may work where this:&lt;BR /&gt;&lt;BR /&gt;   ux2dos in_file &amp;gt; out_file&lt;BR /&gt;&lt;BR /&gt;would fail, if in_file is large.&lt;BR /&gt;&lt;BR /&gt;As usual, showing the actual commands you&lt;BR /&gt;used, and their actual output, might have&lt;BR /&gt;been helpful here.</description>
      <pubDate>Wed, 30 Jan 2008 16:45:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137682#M317115</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-01-30T16:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filesize limitations using ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137683#M317116</link>
      <description>Hi,&lt;BR /&gt;to bypass this you can use:&lt;BR /&gt;&lt;BR /&gt;# In lieu of 'dos2ux'&lt;BR /&gt;perl -pi.old -e' s!\r\n!\n!;s!\032!! if eof' file.in &lt;BR /&gt;&lt;BR /&gt;# ...and in lieu of 'ux2dos' &lt;BR /&gt;perl -pi.old -e 's!\n!\r\n!s;END{print "\032"}' file.in&lt;BR /&gt;&lt;BR /&gt;Origianl file will save as &lt;FILE&gt;.old&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art&lt;BR /&gt;&lt;/FILE&gt;</description>
      <pubDate>Thu, 31 Jan 2008 10:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137683#M317116</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2008-01-31T10:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filesize limitations using ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137684#M317117</link>
      <description>I'm just curious about this:&lt;BR /&gt;&lt;BR /&gt;"dos2ux, ux2dos â   convert ASCII file format"&lt;BR /&gt;&lt;BR /&gt;Do you have **ascii** files larger than 2GB?&lt;BR /&gt;&lt;BR /&gt;Is this any kind of a DB dump?</description>
      <pubDate>Thu, 31 Jan 2008 10:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137684#M317117</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-01-31T10:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filesize limitations using ux2dos</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137685#M317118</link>
      <description>Arturo wrote&amp;gt;&amp;gt; # In lieu of 'dos2ux'&lt;BR /&gt;perl -pi.old -e' s!\r\n!\n!;s!\032!! if eof' file.in &lt;BR /&gt;&lt;BR /&gt;Word of warning... this will NOT produce the same results as dos2us.&lt;BR /&gt;I believe that perl I showed in a reply a day is also subtly different.&lt;BR /&gt;&lt;BR /&gt;The problem here is that the real dos2ux stops at the first ^Z, not just at eof.&lt;BR /&gt;The problem with mine it that it does not output all chars befor the ^Z.&lt;BR /&gt;CLoser:&lt;BR /&gt;perl -pe 's/\r$//; if (/(.*?)\032/) {print $1."\n"; last}' x.dos &amp;gt; tmp.tmp&lt;BR /&gt;&lt;BR /&gt;Also.. iirc 'eof' is a little expendsive in that it gets the potential eof byte, checks it, and ungets it. &lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Sun, 03 Feb 2008 05:17:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesize-limitations-using-ux2dos/m-p/4137685#M317118</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-02-03T05:17:02Z</dc:date>
    </item>
  </channel>
</rss>

