I use this to get the mime type and character set of a file:
for f in *
mime=`file -ib $f`
I want to be able to override the mime type but not the character set for files with the following extension:
Files with all other extensions should use the value deturmined by "mime=`file -ib $f`".