commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Here "^M" is NOT "SHIFT+6" and "M". Type CTRL+V+M to get it instead.
Its shortest and easy. And its sed!, which is available by default in all linux flavours.. no need to install extra tools like fromdos.
There are 9 alternatives - vote for the best!
The old dos2unix from sysutils has been deprecated on Debian systems to this tool.
This method will also convert mac line endings.
If you can do better, submit your command here.
You must be signed in to comment.