Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. { printf '%*s' "179"; printf 'x81'; printf '%*s' "20"; } >infile
  2.  
  3. $ isutf8 infile
  4. infile: line 1, char 1, byte offset 180: invalid UTF-8 code
  5.  
  6. $ isutf8 ./*.py | grep "offset 180"
  7.  
  8. $ isutf8 ./*.py | grep -E "offset (17|18)"
  9.  
  10. $ find . -iname "*.py" -type f -exec bash -c 'isutf8 "$1" | grep -E "offset (17|18)"' Find {} ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement