aboutsummaryrefslogtreecommitdiff
path: root/bin/samsave
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-10-11 03:55:45 +0000
committerrsc <devnull@localhost>2003-10-11 03:55:45 +0000
commitb9b5cea4eda1c011cfc2e18c8b89987d4298cb7c (patch)
tree8925e7691c6a1694950fdda78eb7828d7fd45f85 /bin/samsave
parent00b80edb976f338a22fa8140b11e4b66c79b28d2 (diff)
downloadplan9port-b9b5cea4eda1c011cfc2e18c8b89987d4298cb7c.tar.gz
plan9port-b9b5cea4eda1c011cfc2e18c8b89987d4298cb7c.tar.bz2
plan9port-b9b5cea4eda1c011cfc2e18c8b89987d4298cb7c.zip
Extra sam scripts.
Diffstat (limited to 'bin/samsave')
-rwxr-xr-xbin/samsave18
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/samsave b/bin/samsave
new file mode 100755
index 00000000..7d3a0fb0
--- /dev/null
+++ b/bin/samsave
@@ -0,0 +1,18 @@
+#!/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
+