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:
There are 5 alternatives - vote for the best!
That "^M" is Ctrl-M, which is a carriage return, and is not needed in Unix file systems.
Where ^V is actually Ctrl-V and ^M is actually Ctrl-M (you must type these yourself, don't just copy and paste this command). ^V will not be displayed on your screen.
just deletes to rogue CR from dos files, and tr is always available.
converts non-ISO dos text files for use on unix systems.
One character less...
If you can do better, submit your command here.
You must be signed in to comment.