diff options
Diffstat (limited to 'e3372-readsms.sh')
-rw-r--r-- | e3372-readsms.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/e3372-readsms.sh b/e3372-readsms.sh index 82a1595..38d980f 100644 --- a/e3372-readsms.sh +++ b/e3372-readsms.sh @@ -9,6 +9,6 @@ curl -s -X POST "http://$MODEM_IP/api/sms/sms-list" -H "Cookie: $COOKIE" -H "__R #cat modem_status.xml -message=$(grep -r Content modem_status.xml | sed -e 's/<[^>]*>//g' | sed -e 's/^[ \t]*/\n/g') +message=$(grep -r -E 'Phone|Content' modem_status.xml | sed -e 's/<[^>]*>//g' | sed -e 's/^[ \t]*/------\n/g') -echo "$message\n" +echo "$message\n------"
\ No newline at end of file |