- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- dos2ux using sed
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
тАО04-28-2004 11:17 PM
тАО04-28-2004 11:17 PM
I want to use dos2ux functionality on both HP-UX and Solaris. Since I didn't find dos2ux on Solaris I thought of this:
sed s/$/\`/ < oldwinfile | tr '`' '\015' > newwinfile
A colleague expressed concern that oldwinfile might contain a backtick (`) character, then this would not work.
Any ideas?
The first three useful responses will be rewarded with points!
Remember that the solution must work on BOTH HP-UX and Solaris.
Thanks, Christian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2004 11:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2004 12:08 AM
тАО04-29-2004 12:08 AM
Re: dos2ux using sed
On Solaris 5.8 :
# type dos2unix
dos2unix is a tracked alias for /bin/dos2unix
Cheers
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2004 12:12 AM
тАО04-29-2004 12:12 AM
Re: dos2ux using sed
http://www.grubinski.com/grubinski/dos2unix.c
If you just want to get rid of the line feed :
sed -e 's/^M//g' filename
(^M is done with CTRL+M)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2004 12:18 AM
тАО04-29-2004 12:18 AM
Re: dos2ux using sed
Thanks folks.
Sorry I type the title wrong, should have been ux2dos, not dos2ux.
I won't promise any points for further replies (sorry).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2004 12:36 AM
тАО04-29-2004 12:36 AM
Re: dos2ux using sed
#ux2dos file1 > file2