Created
February 18, 2015 21:53
-
-
Save smitelli/dc2936398eeb1ab84f94 to your computer and use it in GitHub Desktop.
Vessel Challenge - Awful Bash Edition
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 | |
res=$(curl -fsSL http://www.vessel.com/careers/apply.rb) | |
while true | |
do | |
if grep -q 'eval(' <<< "$res" | |
then | |
grep ^\s*# <<< "$res" | grep -v '/usr/bin/env' | |
res=$(sed s/eval/print/ <<< "$res" | ruby) | |
else | |
echo "$res" | |
break | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment