Skip to content

Instantly share code, notes, and snippets.

@DieNand
Created December 12, 2019 20:10
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 DieNand/7f97bc5f5e8b6598f80fe68571a342d2 to your computer and use it in GitHub Desktop.
Save DieNand/7f97bc5f5e8b6598f80fe68571a342d2 to your computer and use it in GitHub Desktop.
Workaround for line endings in Powershell (some file types require unix like line ending to work, this helps in Windows)
$file = ".\colors.ppm"
((Get-Content $file) -join "`n") + "`n" | Set-Content -NoNewline $file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment