Using dos2unix and unix2dos
July 16th, 2009 by Shawn Powers in
Download in .ogv format
__________________________
Shawn Powers is an Associate Editor for Linux Journal. You might find him chatting on the IRC channel, or Twitter
Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer
Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.
Subscribe now!
The Latest
Newsletter
Tech Tip Videos
- Dec-08-09
- Dec-02-09
- Nov-19-09
Recently Popular
From the Magazine
January 2010, #189
You say potato, I say potahto, you say ham, I say amateur... you see where I'm going with this? Ok, maybe not, Amateur Radio, that's where and that's what this month's issue focus is. What you might ask is the connection between Amateur Radio and Linux? Well Linux may be the only O/S out there with an AX.25 packet radio protocol driver, and it's had it since forever. So blow the dust off your license and start reading.
If Ham's not your favorite food, don't despair there are plenty of other articles in this month's issue including, but not limited to, Firewall Builder, Cucumber, Vimperator, port knocking with knockd, building appliances with Linux and Xen, and using Twitter from the command line.
Delicious
Digg
StumbleUpon
Reddit
Facebook








You already used vim... so...
On July 19th, 2009 zuk (not verified) says:
you just use vim command instead :
:%s/^M//ge
sutoroot [at] gmail.com
cygwin and unix2dos / dos2unix
On July 17th, 2009 Ed Skinner (not verified) says:
Unix2dos and dos2unix are also included in the unix-compatible tools for Windows distribution called cygwin. I put this on all the (evil) Windows machines I (am forced to) use to facilitate text file manipulations regardless of which environment, Linux or Windows, I'm sitting at.
How about a TechTip on installing cygwin? I use the installed shell all the time. And if you also install Eclipse on your Windows machine, you can then code and compile on Windows in Eclipse, all for free!
Post new comment