plan9fox/sys/lib/samsave
2011-03-30 19:35:09 +03:00

15 lines
156 B
Bash

#!/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
}