Skip to content

Instantly share code, notes, and snippets.

@briandailey
Created September 18, 2013 03:46
Show Gist options
  • Save briandailey/6604310 to your computer and use it in GitHub Desktop.
Save briandailey/6604310 to your computer and use it in GitHub Desktop.
Hit explainshell.com for help.
function halpme() { curl -s "http://explainshell.com/explain/$1" --data-urlencode "args=${@:2}" -G | sed -n '/<table id="help"/,/<\/table>/p' | sed 's/ *//' | sed 's/<[^>]*>//g' | grep -v "^$" }
# EX:
# ~ ❯ halpme tar -xzf
# The GNU version of the tar archiving utility
# -x, --extract, --get
# extract files from an archive
# -z, --gzip, --gunzip --ungzip
# -f, --file ARCHIVE
# use archive file or device ARCHIVE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment