diff options
Diffstat (limited to 'bin/samsave')
-rwxr-xr-x | bin/samsave | 18 |
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 + |