Skip to content

Instantly share code, notes, and snippets.

@gabemarshall
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabemarshall/7ed2c49b16192fafa480 to your computer and use it in GitHub Desktop.
Save gabemarshall/7ed2c49b16192fafa480 to your computer and use it in GitHub Desktop.
Explainshell.com Bash Script (requires elinks)
#!/bin/bash
# If installing elinks via homebrew, install with `brew install elinks --devel`
MYURL="http://explainshell.com/explain?cmd="
count=0
for var in "$@"
do
if [ "$count" == "0" ];
then
MYURL=$MYURL$var
else
MYURL=$MYURL"+"$var
fi
(( count++ ))
done
elinks $MYURL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment