Plan 9 from Bell Labs’s /usr/web/sources/contrib/maht/rc/lorem

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/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 } ' 

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.