Title: #!/bin/bash Author: Anonymous Pastebin link: http://pastebin.com/idM8TRZM First Edit: Monday 9th of December 2013 07:58:52 AM CDT Last Edit: Monday 9th of December 2013 07:58:52 AM CDT #!/bin/bash                                                                                            # USAGE ./script.sh $start_pos                                 from=$1 to=$(($from + 1000))   for ((t= $(($from));t<$to;t++)) ; do     echo -ne "$t "     curl -s http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=28660`printf %05d $t`001 | grep hubworld -q     if [ "$?" == "0" ] ; then         echo 28660`printf %05d $t`001 >> log_ok         echo 28660`printf %05d $t`001 ok     else         echo fail     fi done