#!/bin/csh -f # motleyfool # ----------------------------------------------------------------------------- # Shell script to view MotleyFool.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 stock ticker search if ($#argv > 0) then (set echo; $browser "https://www.fool.com/premium/search?q=$1") else (set echo; $browser "http://fool.com") endif