Skip to content

Instantly share code, notes, and snippets.

@cjhanks
Created July 23, 2012 20:07
Show Gist options
  • Save cjhanks/3165926 to your computer and use it in GitHub Desktop.
Save cjhanks/3165926 to your computer and use it in GitHub Desktop.
IFS=': ' read -a mimetype <<< "`file $0`" ; echo "PIP THE MAGIC ${mimetype[1]}"
IFS=': ' read -a mystery <<< "`file $0`" ; echo "PIP THE MAGIC ${mystery[1]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment