Skip to content

Instantly share code, notes, and snippets.

@simond
Created October 16, 2017 15:02
Show Gist options
  • Save simond/99d10954a2866ded0a8eecd14e7225f8 to your computer and use it in GitHub Desktop.
Save simond/99d10954a2866ded0a8eecd14e7225f8 to your computer and use it in GitHub Desktop.
#changes line endings from windows to unix for file
sed -i 's/\r$//' /tmp/filename.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment