#!/bin/bash

# wminfo plugin: NASDAQ Stock Prices

# command: wminfo -p nasdaq.wmi -b#742723 -f#ffffff

lynx --source localhost/wminfo/nasdaq.html | \
	grep '_last' | \
	sed 's/<td id="dt1_//;s/_last" align="right" class="//;s/qb_shad//;s/qb_line//;s/" nowrap="nowrap">/ /;s/<\/td>//;s/ds_last//' | \
	perl -pe 's/^\s+//' | \
	grep -vE '_columnsort_none|Last Price:' | awk '{printf ("%4s %-6s\n", $1, $2)}'
echo
