#!/bin/rc

amount=5
what=paras

while(~ $1 -*) {
	switch($1) {
	case -a
		amount=$2
		shift 2
	case -w
		what=$2
		shift 2
	}
}

hget -p 'amount='$amount'&what='$what'&start=yes' http://www.lipsum.com/feed/html | awk '/^Lorem ipsum/,/div>/  { if(!match($0, /p>/)) print } ' 
