Skip to content

Instantly share code, notes, and snippets.

@alfredormz
Created June 19, 2012 20:35
Show Gist options
  • Save alfredormz/2956384 to your computer and use it in GitHub Desktop.
Save alfredormz/2956384 to your computer and use it in GitHub Desktop.
Script para determinar el mime de un archivo sin extension
file -i file_name \
| cut -d ':' -f2 \
| cut -d ';' -f1 \
| cut -d '/' -f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment