- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- flip command for MSDos to Unix
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
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
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-28-2003 10:42 AM
тАО01-28-2003 10:42 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2003 10:48 AM
тАО01-28-2003 10:48 AM
Re: flip command for MSDos to Unix
ux2dos?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2003 10:53 AM
тАО01-28-2003 10:53 AM
Re: flip command for MSDos to Unix
Harry's on the money (as usual). A brief description from the man page:
dos2ux and ux2dos read each specified file in sequence and write it to
standard output, converting to HP-UX format or to DOS format,
respectively.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2003 11:47 AM
тАО01-28-2003 11:47 AM
Re: flip command for MSDos to Unix
The flip command overwrites the existing file, and is a little less combersome.
flip -u filename
I don't know much about C, but
the source for "flip" is avaliable online. Does it just need complied for HPUX instead of Windows?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2003 11:49 AM
тАО01-28-2003 11:49 AM
Re: flip command for MSDos to Unix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2003 12:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2003 12:44 PM
тАО01-28-2003 12:44 PM
Re: flip command for MSDos to Unix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 09:22 AM
тАО01-29-2003 09:22 AM
Re: flip command for MSDos to Unix
Tried to compile but found that "nocreate" is not supported on the gcc ansi version of fstream. I modifed the ifdef else and recompiled.
A guick test shows that it works as documented.
Tested on HPUX 11i 32bit. Attached is the source and binary
compiled using
g++ -ansi -O3 flip.cpp -o flip
will need to use you will need
to
gunzip flip.cpio.gz
cpio -i < flip.cpio
Check perm
note that the cmments show how to do this in perl and sed.
Good luck
Rory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 09:25 AM
тАО01-29-2003 09:25 AM
Re: flip command for MSDos to Unix
attached is the modified source
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 09:32 AM
тАО01-29-2003 09:32 AM
Re: flip command for MSDos to Unix
Let see if you can get it as a uuencode file
uudecode < flip.uu
guznip flip.cpio.gz
cpio -i < flip.cpio