#!/bin/rc rfork en fn usage{ echo usage: `{basename $0} [-m ] [ -n ] url >[1=2] exit usage } cmd=() while(~ $1 -*){ switch($1){ case -m cmd=mothra shift case -n n -w shift case * usage } } if(! ~ $#* 1 || ! ~ $1 http*) usage if(~ $cmd mothra) mothra $1 if not hget $1 | htmlfmt