Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/root/sys/src/cmd/refer/lookbib.rc

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


#!/bin/rc
rfork e
A=()
B=()
std=()	# was /usr/dict/papers/Ind
while(! ~ $#* 0) {
	switch($1) {
	case -n
		std=()
	case -N*
		B=$1
	case -p
		shift
		~ $#* 0 && { echo lookbib: -p takes refer database name as argument >[1=2]; exit usage }
		A=($A -p $1)
	case -*
		A=($A $1)
	case *
		A=($A -p $1)
	}
	shift
}
refer/mkey -s $B | refer/hunt $A

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.