- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- dos2ux equivalent on linux
Operating System - Linux
1819804
Members
3308
Online
109607
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО07-14-2003 07:21 AM
тАО07-14-2003 07:21 AM
Is there an equivalent command on linux for the dos2ux hpux command?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2003 07:24 AM
тАО07-14-2003 07:24 AM
Re: dos2ux equivalent on linux
[balaji@fire balaji]$ rpm -qi dos2unix
Name : dos2unix Relocations: (not relocateable)
Version : 3.1 Vendor: Red Hat, Inc.
Release : 7 Build Date: Mon 25 Jun 2001 08:00:39
AM IST
Install date: Mon 04 Mar 2002 03:53:02 PM IST Build Host: porky.devel.redha
t.com
Group : Applications/Text Source RPM: dos2unix-3.1-7.src.rpm
Size : 19179 License: Freely distributable
Packager : Red Hat, Inc. <>
Summary : Text file format converter
Description :
Dos2unix converts DOS or MAC text files to UNIX format.
[balaji@fire balaji]$ which dos2unix
/usr/bin/dos2unix
-balaji
Name : dos2unix Relocations: (not relocateable)
Version : 3.1 Vendor: Red Hat, Inc.
Release : 7 Build Date: Mon 25 Jun 2001 08:00:39
AM IST
Install date: Mon 04 Mar 2002 03:53:02 PM IST Build Host: porky.devel.redha
t.com
Group : Applications/Text Source RPM: dos2unix-3.1-7.src.rpm
Size : 19179 License: Freely distributable
Packager : Red Hat, Inc. <>
Summary : Text file format converter
Description :
Dos2unix converts DOS or MAC text files to UNIX format.
[balaji@fire balaji]$ which dos2unix
/usr/bin/dos2unix
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2003 07:28 AM
тАО07-14-2003 07:28 AM
Solution
and a few more tips to accomplish this form LOST (http://lost.sourceforge.net)
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : DOS to Unix conversion (#1) LOST #025
Method #1: To convert a DOS text file to Unix so that extra
ASCII 13 does not show up when viewing / editing a DOS text
file : $cat filename.dos | tr -d '\015' > filename.unix
####[bish (at) nde.vsnl.net.in]###############################
:
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : DOS to Unix conversion (#2) LOST #049
Method #2: using recode (if installed)
To convert a DOS text file to Unix so that the extra ASCII 13
does not show up, you can add the following in /etc/profile
or .profile (IF recode package is installed ...)
alias unix2dos='recode lat1..ibmpc'
alias dos2unix='recode ibmpc..lat1'
####[bish (at) nde.vsnl.net.in]###############################
:
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : DOS to Unix conversion (#3) LOST #137
DOS text files with ^M can be cleared by pico editor. Load the
dos text file in pico, Do a small edit job on it. (e.g. place
a space and delete it again) .. Save .. Quit. All ^Ms gone !!
####[bish (at) nde.vsnl.net.in]###############################
:
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : DOS to Unix conversion (#4) LOST #194
Need to remove all those ^M characters from a DOS file? Try :
$col -bx < dosfile > newfile
####[genesis (at) istar.ca]###################################
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : DOS to Unix conversion (#5) LOST #217
In vim editor, it is just a matter of setting file-format (ff)
The steps are :
a) vim dosfile.txt b) :set ff=unix c) :wq
####[binand (at) cysphere.com]################################
:
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : DOS to Unix conversion (#6) LOST #218
If you have vim editor installed, the following script will do
a DOS to Unix conversion:
#!/bin/sh # Save d2u, chmod +x d2u
vim -c ":set ff=unix" -c ":wq" $1 # Usage: d2u filename.txt
####[binand (at) cysphere.com]################################
-balaji
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : DOS to Unix conversion (#1) LOST #025
Method #1: To convert a DOS text file to Unix so that extra
ASCII 13 does not show up when viewing / editing a DOS text
file : $cat filename.dos | tr -d '\015' > filename.unix
####[bish (at) nde.vsnl.net.in]###############################
:
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : DOS to Unix conversion (#2) LOST #049
Method #2: using recode (if installed)
To convert a DOS text file to Unix so that the extra ASCII 13
does not show up, you can add the following in /etc/profile
or .profile (IF recode package is installed ...)
alias unix2dos='recode lat1..ibmpc'
alias dos2unix='recode ibmpc..lat1'
####[bish (at) nde.vsnl.net.in]###############################
:
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : DOS to Unix conversion (#3) LOST #137
DOS text files with ^M can be cleared by pico editor. Load the
dos text file in pico, Do a small edit job on it. (e.g. place
a space and delete it again) .. Save .. Quit. All ^Ms gone !!
####[bish (at) nde.vsnl.net.in]###############################
:
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : DOS to Unix conversion (#4) LOST #194
Need to remove all those ^M characters from a DOS file? Try :
$col -bx < dosfile > newfile
####[genesis (at) istar.ca]###################################
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : DOS to Unix conversion (#5) LOST #217
In vim editor, it is just a matter of setting file-format (ff)
The steps are :
a) vim dosfile.txt b) :set ff=unix c) :wq
####[binand (at) cysphere.com]################################
:
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : DOS to Unix conversion (#6) LOST #218
If you have vim editor installed, the following script will do
a DOS to Unix conversion:
#!/bin/sh # Save d2u, chmod +x d2u
vim -c ":set ff=unix" -c ":wq" $1 # Usage: d2u filename.txt
####[binand (at) cysphere.com]################################
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2003 11:32 AM
тАО07-14-2003 11:32 AM
Re: dos2ux equivalent on linux
Hello!
You have on linux dos2unix so download
ftp://rpmfind.net/linux/contrib/libc6/i386/dos2unix-3.1-3.i386.rpm
Caesar
You have on linux dos2unix so download
ftp://rpmfind.net/linux/contrib/libc6/i386/dos2unix-3.1-3.i386.rpm
Caesar
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP