22
0
Fork 0

Amélioration de la commande headers

This commit is contained in:
jlecour 2020-03-23 14:29:07 +01:00
parent 9e4a0e986d
commit 2012860769
1 changed files with 3 additions and 1 deletions

View File

@ -125,11 +125,13 @@ $ curl -i https://www.example.com
~~~{.bash} ~~~{.bash}
#!/bin/sh #!/bin/sh
# #
# https://github.com/rtomayko/dotfiles/blob/rtomayko/bin/headers # Based on an original implementation by Ryan Tomayko https://github.com/rtomayko/
# modified by Jérémy Lecour https://github.com/jlecour/
curl -sv "$@" 2>&1 >/dev/null | curl -sv "$@" 2>&1 >/dev/null |
grep -v "^\*" | grep -v "^\*" |
grep -v "^}" | grep -v "^}" |
grep -v "data]$" |
cut -c3- cut -c3-
~~~ ~~~