Skip to content

Instantly share code, notes, and snippets.

@joachim-n
Created September 18, 2020 19:31
Show Gist options
  • Save joachim-n/6e4a88724e0f60dafe7c6809f2dae41d to your computer and use it in GitHub Desktop.
Save joachim-n/6e4a88724e0f60dafe7c6809f2dae41d to your computer and use it in GitHub Desktop.
#!/usr/bin/perl -p
# show what the hell is happening with line endings
s[ (?<! \r ) \n ]
[UNIX\n]x;
s[ \r\n]
[WIN\n]x;
s[ \r]
[MAC\n]x;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment