12 lines
189 B
Bash
Executable File
12 lines
189 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ "$1" = "-h" ]]; then
|
|
echo Prints the header for a URL
|
|
exit
|
|
fi
|
|
|
|
# head trick to prevent unable to write -error.
|
|
curl -s -D /dev/stderr "$1" | head -c 1 | head -c 0
|
|
|
|
|