Created
June 19, 2012 20:35
-
-
Save alfredormz/2956384 to your computer and use it in GitHub Desktop.
Script para determinar el mime de un archivo sin extension
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
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