Maybe you know that dos2unix command (included in tofrodos package) makes the conversion between dos and unix text files. But, what if you don't want to install tofrodos package or dos2unix fails? That's the bash solution i found over the web.
- cp mydosfile.txt mydosfile.txt.bak
- tr -d "\r" < mydosfile.txt.bak > mydosfile.txt
CommentsSubscribe to comments
You need to login to post a comment.