#!/bin/csh -f # mstar # ----------------------------------------------------------------------------- # Shell script to view Morningstar.com # ----------------------------------------------------------------------------- set browser = "open" # If $1 is a script in the browsers folder, use it as the browser. if ($#argv > 0 && -x "$0:h/browsers/$1") then set browser = $1:q shift endif # If $1 is specified, use it in a search if ($#argv > 0) then (set echo; $browser "https://www.morningstar.com/search?query=$1") else #open 'http://portfolio.morningstar.com/NewPort/Reg/AllView.aspx?ViewPage=5' (set echo; $browser "https://www.morningstar.com") endif