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

9 lines
233 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}"
2021-02-17 15:26:14 +01:00
if [[ -n "${out}" && "$(grep '\.java' <<< ${out})" ]]; then
2021-02-16 21:15:09 +01:00
echo "HTTP protocol found"
else
echo "HTTP protocol not found"
fi