summaryrefslogtreecommitdiff
path: root/mqq.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mqq.sh')
-rwxr-xr-xmqq.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/mqq.sh b/mqq.sh
index 8fec93d..fb3f827 100755
--- a/mqq.sh
+++ b/mqq.sh
@@ -3,4 +3,7 @@
#message_id=$(grep -E -i "^Message-id:" | sed -e 's/.*<\(.*\)>/\1/')
BODY=$(sed -n '/^Date/,$ p' | grep -E -i '^[^X]+' | sed -En '/^Date/,/application\// p')
-echo "${BODY}" | sed -En '/^Date/,/text\/html/ p' > /home/lxf/notes/"$1".txt
+echo "${BODY}" | sed -En '/^Date/,/text\/html/ p' > /tmp/output.txt\
+&& vivaldi-snapshot /tmp/output.txt \
+&& read -n 1 \
+&& rm /tmp/output.txt