- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- dos2unix command
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
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
тАО05-21-2005 07:53 PM
тАО05-21-2005 07:53 PM
i do have regular problems of files being opend on wordpad or notepad and then when i move them to HPUX they are damaged and i need to remove charcters from them like carriage return.
and i dont know how to resolve this, someone told me about do2unix, can someone tell me what does it do ? and where can i find this command on the HPUX machine ?
the thing is i think my .profile file was changed due to this and now i am unable to login using CDE since the file is changed or something like that. someone can help me plz ?
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2005 08:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2005 08:41 PM
тАО05-21-2005 08:41 PM
Re: dos2unix command
Moreover it is stored in /bin directory of your HP Box.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2005 12:40 AM
тАО05-22-2005 12:40 AM
Re: dos2unix command
dos, unix, mac and propose you to save in any of these formats
It also has an explicit conversion function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2005 06:51 AM
тАО05-22-2005 06:51 AM
Re: dos2unix command
When u copy i.e. ftp such file to Unix System first execute this command and then edit e.g. you have copied "file1" then:
# cat file | col -bx > file2
Now you can edit file2 which is readable.
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2005 07:43 AM
тАО05-22-2005 07:43 AM
Re: dos2unix command
Try:
cp .profile .profile.OLD
dos2ux .profile.OLD > profile
If that doesn't help, consider recovering your .profile from a backup?
Cheers,
Renarios
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2005 02:00 PM
тАО05-22-2005 02:00 PM
Re: dos2unix command
So when you edit files on a PC, they look fine on the PC but look strange on HP-UX. But the reverse is also true. Create a simple file on HP-UX and transfer it using ftp binary mode and in Notepad, the file will have little black squares where the next line should be. That's because Notepad expects 2 characters (CR/LF) and not just the LF which is standard for Unix. Note that if you open the file with Wordpad, it will appear correct but that's because Wordpad uses a single LF as a soft-return marker. Other operating systems are even more incompatible.
The good news is that you don't need dos2ux (or ux2dos) to exchange files. ftp has a special option called ASCII which performs the required translation. Your ftp may default to BINARY which does nothing so when transferring text files, override the ftp setting with the ASCII command. This will work correctly between all operating systems.
Bill Hassell, sysadmin