Skip to content

Instantly share code, notes, and snippets.

@Ran-Xing
Last active November 24, 2022 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ran-Xing/52da64b00b07382b576bd69a6dc727b0 to your computer and use it in GitHub Desktop.
Save Ran-Xing/52da64b00b07382b576bd69a6dc727b0 to your computer and use it in GitHub Desktop.

Install unix2dos

search unix2dos search dos2unix

[ apt | brew | yum ] install unix2dos

convert

find $(pwd) -type f -exec unix2dos -ic {} \; | xargs -I {} unix2dos '{}'

find $(pwd) -type f -exec dos2unix -ic {} \; | xargs -I {} dos2unix '{}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment