14 lines · 156 B · Text
RawDownload
#!/bin/rc file=$1switch($#*){case 1	echo -n $file'?'	yn=`{read < /dev/cons}	if(~ $yn y){		cat > $file	}case 2	/bin/echo $file	/bin/cat > $file}