From 76ec776767934ecc6b4477f91c129df044ba6700 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Tue, 16 Feb 2021 15:18:12 -0500 Subject: [PATCH] Fix syntax. --- 27-01-2021-grepString/grepHttp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/27-01-2021-grepString/grepHttp.sh b/27-01-2021-grepString/grepHttp.sh index f22efab..318a2d8 100644 --- a/27-01-2021-grepString/grepHttp.sh +++ b/27-01-2021-grepString/grepHttp.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash out=`find . -name '*.java' -exec grep 'http://' /dev/null {} +` echo "${out}" -if [[ "$(grep 'java' out)" ]]; then +if [[ "$(grep 'java' ${out})" ]]; then echo "HTTP protocol found" else echo "HTTP protocol not found"