April 26, 2008 · General · Email This Post

Sponsored Link
If you are baseball lover and you want to check the baseball scores for your favourite team score from command line use the following procedure.

Lynx is a fully-featured World Wide Web (WWW) client for users running cursor-addressable, character-cell display devices (e.g., vt100 terminals, vt100 emulators running on PCs or Macs, or any other "curses-oriented" display). It will display hypertext markup language (HTML) documents containing links to files residing on the local system, as well as files residing on remote systems running Gopher, HTTP, FTP, WAIS, and NNTP servers.

Install lynx command line browser

sudo aptitude install lynx

Now you need to use the following command

For MLB Scores

lynx -nonumbers -dump http://scores.espn.go.com/mlb/scoreboard | egrep -i -A12 -B2 Texas

You need to replace Texas with the team you want to watch

For NHL Scores

lynx -nonumbers -dump http://scores.espn.go.com/nhl/scoreboard | egrep -i -A12 -B2 Detroit

You need to replace Detroit with the team you want to watch

For NBA Scores

lynx -nonumbers -dump http://scores.espn.go.com/nba/scoreboard | egrep -i -A12 -B2 Dallas
You need to replace Dallas with the team you want to watch

Sponsored Link

Incoming search terms:

Related posts

1 Comment to “Howto check NHL or MLB Baseball and NBA scores from the command line”

  1. everthonVS says:

    Nice and handy howto! Lynxs is really cool, but ELinks its better: an advanced, enhanced and well-established feature-rich text mode web browser.

    Check some of its features: ELinks can render both frames and tables, tabs, background download with queueing, some support for Cascading Style Sheetsand, etc, etc, etc… and it is highly customizable.

    Install ELinks command line browser

    sudo aptitude install elinks

    [Reply]

Leave a Reply