title: Application type of .Z file type
body: <p>I'm trying to find the application type in order  to figure if a file is a 'compressed' file using the File command.
  The compress files have the .Z file type, and I want to catch it using the ' case ... in ' method.
  An example for catching gunzip files will be the following:</p>
  <pre><code>            case $(file --mime-type -b &quot;$myFile&quot;) in
              application/gzip) 
                  echo &quot;gunzip    $myFile&quot; ;;
  </code></pre>
  <p>I've tried doing this:</p>
  <pre><code>                application/ncompress)
                  echo &quot;uncompress    $myFile&quot; ;; # NOT WORKING
  </code></pre>
  <p>But it does not work.</p>