aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-14 14:41:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-14 14:41:42 +1200
commit70d7ff7b7c254c748cd8193e17e3ed60f29f4f2b (patch)
tree5d1cd71157e929d77f71fd08045bf1f40840c46a /bin
parentAdd sd2u(1) and su2d(1) (diff)
downloaddotfiles-70d7ff7b7c254c748cd8193e17e3ed60f29f4f2b.tar.gz
dotfiles-70d7ff7b7c254c748cd8193e17e3ed60f29f4f2b.zip
Have urlh(1) convert line endings
Diffstat (limited to 'bin')
-rwxr-xr-xbin/urlh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/urlh b/bin/urlh
index a9ea93fd..2c547ad0 100755
--- a/bin/urlh
+++ b/bin/urlh
@@ -14,6 +14,9 @@ curl -I -- "$url" |
# Unfold the headers
unf |
+# Change the line endings to UNIX format
+sd2u |
+
# Use awk to find any values for the header case-insensitively
awk -v header="$header" '
BEGIN {