From e3fa929cd71396dce48e84de1de713897bde1b7e Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 21 Sep 2021 20:48:02 +0200 Subject: [PATCH] pipe --- mikrotik/mt_system | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mikrotik/mt_system b/mikrotik/mt_system index fe1f365..ccdd4e5 100644 --- a/mikrotik/mt_system +++ b/mikrotik/mt_system @@ -47,7 +47,7 @@ function get_name { function get_cpu_count { while read -r line; do if echo $line | grep 'cpu-count' > /dev/null; then - anzahl_cpu=$(echo $line grep cpu-count: | sed -r 's/(cpu-count: )([0-9]+)/\2/g' | tr -dc '[0-9]') + anzahl_cpu=$(echo $line | grep cpu-count: | sed -r 's/(cpu-count: )([0-9]+)/\2/g' | tr -dc '[0-9]') fi done <<< "$data" }