shithub: sirjofri_de

ref: eb07ec1213e2552c1bcf79a9615fc7e646ba82a7
dir: /pub/files/9front/rc/snarf/

View raw version
#!/bin/rc

fn usage{
	echo 'usage: '^`{basename $0}^' file' >[1=2]
	exit usage
}

if(~ $#1 0)
	usage $0;

if(! test -f $1){
	echo -n $1 >/dev/snarf
	exit
}
echo -n `{pwd}^'/'^$1 >/dev/snarf