add new grep script

This commit is contained in:
Roberto Cirillo 2024-02-27 15:23:44 +01:00
parent 1cbe2a4e15
commit a5d64bc0d9
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 'gfeed.d4science.org' /dev/null {} + || echo 'empty'`
if [[ ["${out}" != "empty"] && "$(grep '\.java' <<< ${out})" ]]; then
echo "gFeed endpoint found in "
echo "${out}"
else
echo "gFeed endpoint not found"
fi