Skip to content

Instantly share code, notes, and snippets.

@akkerman
Last active September 30, 2022 04:32
Show Gist options
  • Save akkerman/763be70b17482f914f434ee5ac92b906 to your computer and use it in GitHub Desktop.
Save akkerman/763be70b17482f914f434ee5ac92b906 to your computer and use it in GitHub Desktop.
httpstatus () {
if [ -z $1 ]
then
w3m -dump -no-graph https://httpstatuses.com
else
w3m -dump -no-graph https://httpstatuses.com/$1 | sed -n '/-----/q;p' | ack -A 1000 'Status Code' | ack --passthru $1
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment