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

11 lines
245 B
Bash

#!/usr/bin/env bash
if [[ "$(find . -name '*.java' -exec grep 'http://' /dev/null {} +)" ]]; then
echo "http protocol found"
else
echo " http not found"
fi
find . -name '*.java' -exec grep 'http://' /dev/null {} + || echo "No http found"