gCubeActions/27-01-2021-grepString/grepHttp.sh

9 lines
208 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2021-02-16 21:15:09 +01:00
out=`find . -name '*.java' -exec grep 'http://' /dev/null {} +`
echo "${out}"
if [[ "$(grep 'java' out)" ]]; then
echo "HTTP protocol found"
else
echo "HTTP protocol not found"
fi