Plan 9 from Bell Labs’s /usr/web/sources/contrib/rminnich/package/bin/rc/cat

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


#!/bin/rc -e

rfork ne

path=/bin

fn fatal {
	echo $*
	exit $"*
}

9fs sources || fatal mount server failed
for(i){
	f=`{basename $i}
	fcp $i /tmp/$f.$pid
	cat /tmp/$f.$pid
	rm -f /tmp/$f.$pid
}
exit ''

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.