Skip to content

Instantly share code, notes, and snippets.

@alphabraga
Last active December 26, 2015 07:59
Show Gist options
  • Select an option

  • Save alphabraga/7118668 to your computer and use it in GitHub Desktop.

Select an option

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
ls -R ./ | awk '/:$/&&f{s=$0;f=0} /:$/&&!f{sub(/:$/,"");s=$0;f=1;next} NF&&f{ print s"/"$0 }'| xargs file -i
@alphabraga

Copy link
Copy Markdown
Author

Depois quero colocar isso no meu dotfiles

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