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

Copyright © 2009 Alcatel-Lucent.
Distributed under the Lucent Public License version 1.02.
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 ''

(This is a user-contributed directory and
should not be interpreted as statement by Alcatel-Lucent.)

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2009 Alcatel-Lucent. All Rights Reserved.
Comments to webmaster@plan9.bell-labs.com.