Is there a way to find out the MIME type (or is it called \"Content-Type\"?) of a file in a Linux bash script?
The reason I need it is because ImageShack appears to
Try the file command with -i option.
-i
-i option Causes the file command to output mime type strings rather than the more traditional human readable ones. Thus it may say text/plain; charset=us-ascii rather than ASCII text.
text/plain; charset=us-ascii
ASCII text