Last active
December 26, 2015 07:59
-
-
Save alphabraga/7118668 to your computer and use it in GitHub Desktop.
Command to list files in the current directory and its enconding. Help in projects where the encoding matter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -R ./ | awk '/:$/&&f{s=$0;f=0} /:$/&&!f{sub(/:$/,"");s=$0;f=1;next} NF&&f{ print s"/"$0 }'| xargs file -i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Depois quero colocar isso no meu dotfiles