shithub: sirjofri_de

ref: 15f77527b6ffc8ec6449c65189493ea220855a87
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