shithub: sirjofri_de

ref: 023bf826a187b0914285b1930cd13951c4c2cdfd
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