Extra sam scripts.
This commit is contained in:
18
bin/samsave
Executable file
18
bin/samsave
Executable file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user