diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/urlh.sh | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/urlh.sh b/bin/urlh.sh index 5b5cab74..9f517fe9 100644 --- a/bin/urlh.sh +++ b/bin/urlh.sh @@ -17,13 +17,10 @@ unf | sd2u | # Use awk to find any values for the header case-insensitively -awk -v header="$header" ' -BEGIN { - FS=": *" - header = tolower(header) -} +awk -F ': *' -v header="$header" ' +BEGIN { header = tolower(header) } tolower($1) == header { - sub(/^[^ ]*: */, "") + sub(/^[^:]*: */, "") print } ' |