Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/rc/list/add

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


#!/bin/rc
# list/add - add addresses to upas patternfile

if(test $#* -lt 2){
	echo >[1=2] usage: list/add list address ...
	exit usage
}

patternfile=`{list/of $1} && shift
if(! ~ $status '')
	exit $status
fn sigexit { rm -f /tmp/addressfile.$pid; exit $s }
for(address)
	echo $address >>/tmp/addressfile.$pid
upas/list add $patternfile /tmp/addressfile.$pid
s=$status

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.