- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Filesize limitations using ux2dos
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2008 08:18 AM
тАО01-30-2008 08:18 AM
Filesize limitations using ux2dos
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2008 08:20 AM
тАО01-30-2008 08:20 AM
Re: Filesize limitations using ux2dos
If you don't have largefiles turned on, your limited to 2 gigs in file size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2008 08:24 AM
тАО01-30-2008 08:24 AM
Re: Filesize limitations using ux2dos
have a look at this doc.
http://www11.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c00936500-2
Title: dos2ux and ux2dos do not support large files greater than 2gb
Document ID: emr_na-c00936500-2
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2008 08:43 AM
тАО01-30-2008 08:43 AM
Re: Filesize limitations using ux2dos
Can you hide the large file in a pipe?
Does this work?
# cat dosfile | dos2ux | cat > unixfile ?
Given to volume of data to fix up, maybe you want to consider revisiting the source and/or target of this data.
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.
Maybe the target can be tought to ignore the extra character?
And maybe you can just roll your own filter, possibly with perl:
For example
perl -pe 's/\r$//; last if /^\032$/' dos > unix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2008 08:45 AM
тАО01-30-2008 08:45 AM
Re: Filesize limitations using ux2dos
invisible to programs built without
large-file support. This would seem to be
the case here.
A more tolerant approach, which would have
been useful here, would be to go ahead and
try to use the file, and wait for seek/tell
operations to fail (invisibly). That
approach can cause file corruption when a
seek wraps around the 2GB limit, leaving the
program looking at the front of the file when
it should have been somewhere in the middle.
Which, I assume, is why some vendors chose to
fail at the open, before any damage is done.
One solution is to get the source code, and
build the program with large-file support.
For a program like this, which (I'd guess)
does no seek/tell operations, it should be
pretty easy.
If the program can be used as a filter, which
would also seem to be true here, then
redirecting standard input and/or output can
work around a limitation like this. That is,
a command like:
ux2dos < in_file > out_file
may work where this:
ux2dos in_file > out_file
would fail, if in_file is large.
As usual, showing the actual commands you
used, and their actual output, might have
been helpful here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2008 02:11 AM
тАО01-31-2008 02:11 AM
Re: Filesize limitations using ux2dos
to bypass this you can use:
# In lieu of 'dos2ux'
perl -pi.old -e' s!\r\n!\n!;s!\032!! if eof' file.in
# ...and in lieu of 'ux2dos'
perl -pi.old -e 's!\n!\r\n!s;END{print "\032"}' file.in
Origianl file will save as
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2008 02:17 AM
тАО01-31-2008 02:17 AM
Re: Filesize limitations using ux2dos
"dos2ux, ux2dos ├в convert ASCII file format"
Do you have **ascii** files larger than 2GB?
Is this any kind of a DB dump?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2008 09:17 PM
тАО02-02-2008 09:17 PM
Re: Filesize limitations using ux2dos
perl -pi.old -e' s!\r\n!\n!;s!\032!! if eof' file.in
Word of warning... this will NOT produce the same results as dos2us.
I believe that perl I showed in a reply a day is also subtly different.
The problem here is that the real dos2ux stops at the first ^Z, not just at eof.
The problem with mine it that it does not output all chars befor the ^Z.
CLoser:
perl -pe 's/\r$//; if (/(.*?)\032/) {print $1."\n"; last}' x.dos > tmp.tmp
Also.. iirc 'eof' is a little expendsive in that it gets the potential eof byte, checks it, and ungets it.
Hein.