aboutsummaryrefslogblamecommitdiff
path: root/bin/urlmt
blob: 7332663eb7af08b0bc61dcaf3b80147e629fc02a (plain) (tree)
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/; .*//
'