shithub: riscv

ref: 8e3abc0cce6d52ebf9195ea277a6dbd92ba497a1
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
}