plan9port/bin/samsave

19 lines
216 B
Text
Raw Permalink Normal View History

2003-10-11 03:55:45 +00:00
#!/bin/sh
# Copyright (c) 1998 Lucent Technologies - All rights reserved.
file=$1
case "$2" in
-f)
echo "$file"
cat >$file
;;
"")
echo "$file?"
read yn </dev/tty
case "$yn" in
[Yy]*)
cat >$file
esac
esac