Posts

Showing posts with the label football

NCAA Football standings.

Image
Varied an existing script to show the NCAA college football standings. It is not formatted yet as I can get what I want without formatting. It is pretty much the same script to get the scores, but using a different web page to gather data. [code] ################################### # Score  Grabber # #=============================== # Assignments # -------------------------------- datafile="tcf" let "flag = 0" let "year = 2014" let "week = 14" if [ "$week" -lt "10" ]; then     let "a = 0" fi # end assignments #================================= # # Get data file #--------------------------------- elinks -dump "www.ncaa.com/standings/football/fbs/"  > $datafile IFS='%' #================================= # # Extract and display data #--------------------------------- while read line do fdata[$a]=$line     echo $line | grep -q "Atlantic Coast"     if  [...

College football scores.

Was bored tonight so I did a college football page scrape and the original version is only good for the current week. Still needs a bit of work such as better formatting, but you get the idea.     NCAA Scoreboard Saturday, September 13, 2014 Rice vs Texas A&M 3rd 5:44 1 2 3 4 Rice 0 7 0 7 0-1 7 Texas A&M 7 14 7 28 2-0 Arizona State vs Colorado Halftime 1 2 3 4 16 Arizona State 14 10 24 .... .... ....  -------------------- We usually save data to file for editing ./gcfs.sh > filename gcfs.sh [code] #################################### # Score  Grabber # #=============================== # Assignments # -------------------------------- datafile="tcf" let "flag = 0" # end assignments #================================= # # Get data file #--------------------------------- elinks -dump "www.ncaa.com/scoreboard/football/fbs"  > $datafile #================================= # # Extract and display dat...

Spreadsheets are more than for accounting.

Image
Statistics are so interesting. I was curious about the NFL draft. Thinking how could I look at the results of the draft. Voila a spreadsheet of course. A spreadsheet is sometimes known as a flat file and looks much like an accountant's worksheet. That is it has no relation to any other file in its most rudimentary form. For our purposes that would be just fine.The original list was in the order of when someone was drafted. So I gathered the data from the draft with everything in corresponding columns. That makes sense. Then I thought what can I do. Arranging or sorting a list is one of the pluses of the spreadsheet. Let's see you have the team name, draftee and his position, plus some other vital data. Posed myself a question that maybe opposing teams might ask. The teams obviously drafted where they thought they might need help. Lets do a sort and see who needs what. Instructions to do a sort for your spreadsheet may vary. Noticed that there was only one punter draf...