How to list text files and their encoding from a dir tree Simple listing: $ find . -type f -exec file -i {} \;" Filter by encoding, eg. utf-8: $ find . -type f -exec file -i {} \; | grep "charset=utf-8"