shithub: riscv

ref: 970d3b7eb7dc56aa84924dd68c4c39fd1df5d1f5
dir: /sys/lib/samsave/

View raw version
#!/bin/rc

file=$1
switch($#*){
case 1
	echo -n $file'?'
	yn=`{read < /dev/cons}
	if(~ $yn y){
		cat > $file
	}
case 2
	/bin/echo $file
	/bin/cat > $file
}