shithub: riscv

ref: 29d22d1362241e8688f99c06416300cb3431ba61
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
}