#!/bin/sh # Get the MIME type for a given URL urlh "$1" Content-Type | sed 's/; .*//'