Skip to content

Instantly share code, notes, and snippets.

@chooh
Last active October 7, 2020 09:22
Show Gist options
  • Save chooh/6a99bf97826965bc1096018f7dc540d4 to your computer and use it in GitHub Desktop.
Save chooh/6a99bf97826965bc1096018f7dc540d4 to your computer and use it in GitHub Desktop.
Dos 2 Unix

Convert CRLF to LF

for file in **/*.brs
do
  vi +':w ++ff=unix' +':q' "$file"
done

Remove BOM

:set nobomb
:w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment