Last active
December 25, 2015 09:09
-
-
Save octagonal/6952043 to your computer and use it in GitHub Desktop.
This bash script will give you superpowers
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
#!/usr/bin/env bash | |
function superpower { | |
echo $(curl -Is http://powerlisting.wikia.com/wiki/Special:Random | grep Location | cut -d / -f 5 | sed "s/_/ /g") | |
} | |
count=$1 | |
echo "Your superpowers for today are: " > $HOME/super.txt | |
for (( c=1; c<=$count; c++ )) | |
do | |
superpower >> $HOME/super.txt | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment