From eb63e75379854d53971733cd35dc1a33dbe84d9b Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 5 Dec 2016 17:06:20 +0100 Subject: [PATCH] No need for pipe here --- pihole | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pihole b/pihole index d8217fed..45cd0af0 100755 --- a/pihole +++ b/pihole @@ -70,7 +70,7 @@ setupLCDFunction() { queryFunc() { domain="${2}" for list in /etc/pihole/list.*; do - count=$(grep ${domain} $list | wc -l) + count=$(grep -c ${domain} $list) echo "::: ${list} (${count} results)" if [[ ${count} > 0 ]]; then grep ${domain} ${list}