From 71715d1683cca4152c058189db03944cbe84a111 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 31 Mar 2023 14:00:10 +0200 Subject: [PATCH] send same comment to sensors by pattern --- zc-send-by-pattern.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 zc-send-by-pattern.sh diff --git a/zc-send-by-pattern.sh b/zc-send-by-pattern.sh new file mode 100755 index 0000000..b407d10 --- /dev/null +++ b/zc-send-by-pattern.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +patt=$1 +shift +grep $patt subvision-numbers.txt | awk '{ print $3 }' | xargs -i echo ./zc-send queue/{} $* -- 2.20.1