diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:53:33 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:53:33 +0300 |
commit | e463eb40363ff4c68b1d903f4e0cdd0ac1c5977f (patch) | |
tree | d5e9f57c28f026cb21de3bd77cc10cd7f64aaa85 /sys/lib/samsave | |
parent | b41b9034225ab3e49980d9de55c141011b6383b0 (diff) |
Import sources from 2011-03-30 iso image - sys/lib
Diffstat (limited to 'sys/lib/samsave')
-rwxr-xr-x | sys/lib/samsave | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/lib/samsave b/sys/lib/samsave new file mode 100755 index 000000000..51047df88 --- /dev/null +++ b/sys/lib/samsave @@ -0,0 +1,14 @@ +#!/bin/rc + +file=$1 +switch($#*){ +case 1 + echo -n $file'?' + yn=`{read < /dev/cons} + if(~ $yn y){ + cat > $file + } +case 2 + /bin/echo $file + /bin/cat > $file +} |