added sed and cat input options, for fancy inputing. (Still lacking editor-multiline support, tough
Raven

Raven commited on 2015-04-20 20:35:03
Zeige 1 geänderte Dateien mit 11 Einfügungen und 0 Löschungen.

  • sms 6d267d0..f7d9083
... ...
@@ -36,6 +36,17 @@ done
36 36
 
37 37
   # (3) prompt user for message content, and read command line argument
38 38
 read -p "Message: " messageinput
39
+
40
+case $messageinput in
41
+    sed )
42
+        echo -n 'Message: '
43
+        messageinput=$(sed '/^$/q');;
44
+    cat )
45
+        echo -n 'Message: '
46
+        messageinput=$(cat);;
47
+    * ) ;;
48
+    esac
49
+
39 50
 while true
40 51
 do
41 52
       # (1) prompt user, and read command line argument
42 53