Last active
August 29, 2015 14:05
-
-
Save gabemarshall/7ed2c49b16192fafa480 to your computer and use it in GitHub Desktop.
Explainshell.com Bash Script (requires elinks)
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
#!/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