diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-15 23:47:14 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-15 23:47:14 +1200 |
commit | f4b94bf643d50d9aecb0de4dbf728f34cb693e09 (patch) | |
tree | 7b1db83bc47b144d8b700e3e3a0014f300fdac56 /bin | |
parent | Keep ls(1) option metadata in cache (diff) | |
download | dotfiles-f4b94bf643d50d9aecb0de4dbf728f34cb693e09.tar.gz dotfiles-f4b94bf643d50d9aecb0de4dbf728f34cb693e09.zip |
Extend and comment sed(1) in urlmt(1)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/urlmt | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ #!/bin/sh # Get the MIME type for a given URL -urlh "$1" Content-Type | sed 's/; .*//' +urlh "$1" Content-Type | + +# Use last line only, remove any charset suffix +sed ' +$!d +s/; .*// +' |