Skip to content

Instantly share code, notes, and snippets.

@dereksz
Created November 30, 2014 22:34
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 dereksz/c1d54f049d104cf71733 to your computer and use it in GitHub Desktop.
Save dereksz/c1d54f049d104cf71733 to your computer and use it in GitHub Desktop.
useful git one-liners
# Find UNICODE files
find -name '*.tt' | xargs -I{} file {} | grep -F 'UTF-16'
# Modified files - check types
git status -s | sed -nre 's/^ M //p' |
xargs -I{} file {} # and check the files 'type' (looking for unicode madness here!)cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment