Extend wolfram result parsing. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 31fa20291965158672be7d2590223de9169846eb | |
parent 28690f24a1affd0c573ec0651bb27c6d1fd21ecd | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Sun, 12 Apr 2020 18:32:01 +0200 | |
Extend wolfram result parsing. | |
Diffstat: | |
M annna-start-services | 5 ++++- | |
1 file changed, 4 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/annna-start-services b/annna-start-services | |
@@ -193,7 +193,10 @@ then | |
| grep -v '^i ' \ | |
| head -n -1 \ | |
| tail -n +2 \ | |
- | sed 's,i\(.*\)fake\texample.com.*,\1,')" | |
+ | sed 's,i\(.*\)fake\texample.com.*,\1,;s,[ \t… | |
+ | tr '\n' ' ' \ | |
+ | sed "s,^b',,;s,' $,," \ | |
+ | sed 's,\\n,\n,g;s,\\t,\t,g' \ | |
if [ -n "$dresult" ]; | |
then |