Created
September 18, 2013 03:46
-
-
Save briandailey/6604310 to your computer and use it in GitHub Desktop.
Hit explainshell.com for help.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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