diff --git a/27-01-2021-grepString/grepHttp.sh b/27-01-2021-grepString/grepHttp.sh index e5e5d47..2daf584 100644 --- a/27-01-2021-grepString/grepHttp.sh +++ b/27-01-2021-grepString/grepHttp.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -if [[ "$(grep -r 'http://' .)" ]]; then +if [[ "$(find . -name *.java | xargs grep 'http://')" ]]; then echo "http protocol found" else echo "http protocol not found"