Skip to content

Instantly share code, notes, and snippets.

@hongjonghwa
Last active December 28, 2022 06:15
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 hongjonghwa/37021a58e569cc423e6504b4e52be334 to your computer and use it in GitHub Desktop.
Save hongjonghwa/37021a58e569cc423e6504b4e52be334 to your computer and use it in GitHub Desktop.
# 1) remove ^M
find . -type f | xargs -Ix sed -i.bak -r 's/\r//g' x
# 2) delete *.bak
find . -type f -name '*.bak' | xargs -Ix rm x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment