aboutsummaryrefslogtreecommitdiff
path: root/bin/urlmt.sh
blob: cd71b0fd6a6d3e5846404210a3aa88beedccf3a3 (plain) (blame)
1
2
3
4
5
6
7
8
# Get the MIME type for a given URL
urlh "$1" Content-Type |

# Use last line only, remove any charset suffix
sed '
$!d
s/;.*//
'