Paso 13: Agarrar partituras de fútbol del colegio.
Script to get college football scores. #################################### # Score Grabber # #=============================== # Assignments # -------------------------------- datafile="tcf" let "flag = 0" let "year = 2014" let "week = 4" if [ "$week" -lt "10" ]; then let "a = 0" fi # end assignments #================================= # # Get data file #--------------------------------- elinks -dump "www.ncaa.com/scoreboard/football/fbs/$year/$a$week/" > $datafile #================================= # # Extract and display data #--------------------------------- while read line do fdata[$a]=$line echo $line | grep -q "NCAA Scoreboard" if [ $? -eq 0 ]; then # header clear let "flag = 1" fi if [ $flag -eq 1 ]; then echo $line | grep -q "Featured Sections" if [ $? -eq 0 ]; then let "flag = 0" else echo $line | grep -q "GameCenter" if [ $? -eq 0 ]; then let "response = donothing" else echo $line | sed 's/\[.*\]//' fi fi fi let "a += 1" done < $datafile # footer echo --------------------------------------------- echo #=================================== # End. ####################################