Plan 9 from Bell Labs’s /usr/web/sources/contrib/yk/contrib-patch/listall

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


#!/bin/rc -e

rfork ne

path=/bin
␊='
'

fn usage {
	echo 'usage: contrib/listall' >[1=2]
	exit  usage	
}

fn fatal {
	echo $*
	exit $"*
}

9fs sources || fatal mount server failed

cd /n/sources/contrib || exit
{
	for(d in *){
		echo $d/replica/* &
	}
} |
tr ' ' $␊ |
sed '/\*$/d; s!/.*/!/!'

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.