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

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