Add '27-01-2021-grepString/grepSlf4j-log4j.sh'

add new script for searching slf4j-log4j
This commit is contained in:
Roberto Cirillo 2021-04-23 16:49:01 +02:00
parent 8c87ce81dc
commit 19728df5ed
1 changed files with 8 additions and 0 deletions

View File

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