Add '27-01-2021-grepString/grep-sysout-msg.sh'

new script added
This commit is contained in:
Roberto Cirillo 2024-03-12 12:40:00 +01:00
parent cb3cc648a1
commit 31367ef09e
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
out=`find . -name '*.java' -exec grep '****CompleteResourceProfile' /dev/null {} + || echo 'empty'`
if [[ ["${out}" != "empty"] && "$(grep '\.java' <<< ${out})" ]]; then
echo "sysout found in "
echo "${out}"
else
echo "sysout not found"
fi