Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This bash script will give you superpowers
#!/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
You can’t perform that action at this time.