shithub: sirjofri_de

ref: 9caff55900707e3b33596fd9fe716ac4f195e738
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