diff --git a/27-01-2021-grepString/grepHomeLibrary.sh b/27-01-2021-grepString/grepHomeLibrary.sh new file mode 100644 index 0000000..be518ee --- /dev/null +++ b/27-01-2021-grepString/grepHomeLibrary.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +out=`find . -name ‘pom.xml’ -exec grep ‘home-library’ /dev/null {} + || echo 'empty'` +if [[ ["${out}" != "empty"] && "$(grep '\.java' <<< ${out})" ]]; then + echo "${out}" + echo “Home Library found" +else + echo “Home Library not found" +fi \ No newline at end of file