shithub: sirjofri_de

ref: 66f3f58a03578914ba97a7aa3862bacfa0bd00df
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