send same comment to sensors by pattern
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 31 Mar 2023 12:00:10 +0000 (14:00 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 31 Mar 2023 12:00:10 +0000 (14:00 +0200)
zc-send-by-pattern.sh [new file with mode: 0755]

diff --git a/zc-send-by-pattern.sh b/zc-send-by-pattern.sh
new file mode 100755 (executable)
index 0000000..b407d10
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+patt=$1
+shift
+grep $patt subvision-numbers.txt | awk '{ print $3 }' | xargs -i echo ./zc-send queue/{} $*