Title: #!/bin/bash COUNT=9999; while [ $COUNT -ne "0000" ] do URL="http:/ Author: Anonymous Pastebin link: http://pastebin.com/tMpMVKV8 First Edit: Sunday 8th of December 2013 10:27:27 PM CDT Last Edit: Sunday 8th of December 2013 10:27:27 PM CDT #!/bin/bash   COUNT=9999; while [ $COUNT -ne "0000" ] do         URL="http://assets.hubworld.com/videos/90719631001/201312/$COUNT/90719631001_2866082904001_HUB-140213005-FOB-HubWrld.mp4";         if curl $URL 2> /dev/null | grep -q -i "File not found"         then                 echo "$COUNT = Nope"         else                 echo "$COUNT = WINNER"                 exit 0         fi         COUNT=$[$COUNT -1]; done