Skip to content

Instantly share code, notes, and snippets.

@smitelli
Created February 18, 2015 21:53
Show Gist options
  • Save smitelli/dc2936398eeb1ab84f94 to your computer and use it in GitHub Desktop.
Save smitelli/dc2936398eeb1ab84f94 to your computer and use it in GitHub Desktop.
Vessel Challenge - Awful Bash Edition
#!/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