If you don't have dos2unix installed use sed dos2unix: sed 's/\r//' unix2dos: sed 's/$/\r/' https://github.com/sindresorhus/awesome