Skip to content

Instantly share code, notes, and snippets.

@ErykDarnowski
Last active May 1, 2023 14:03
Show Gist options
  • Save ErykDarnowski/a40eaf3e98a7edc9730070e4c4647171 to your computer and use it in GitHub Desktop.
Save ErykDarnowski/a40eaf3e98a7edc9730070e4c4647171 to your computer and use it in GitHub Desktop.
How to fix `/bin/bash^M: bad interpreter: No such file or directory` error (not being able to execute a `.sh` file because of Window's line endings)
sed -i -e 's/\r$//' <name_of_file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment