#!/bin/rc # ups - look up a UPS tracking number rfork en if(! ~ $#* 1) { echo usage: ups 1ZA41W190338680961 >[1=2] exit usage } hget 'http://wwwapps.ups.com/WebTracking/processInputRequest?tracknum='^$1^ \ '&TypeOfInquiryNumber=T' >/tmp/ups.1 sed 's/<[Tt][Dd]>/& «TD»/g; s/<[Tt][Rr]>/&