Add '27-01-2021-grepString/grepShortLink.sh'

add new script in order to retrieve google short links
This commit is contained in:
Roberto Cirillo 2021-03-16 12:10:14 +01:00
parent 289496739f
commit d5600373eb
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 'http://goo.gl' /dev/null {} + || echo 'empty'`
if [[ ["${out}" != "empty"] && "$(grep '\.java' <<< ${out})" ]]; then
echo "${out}"
echo "short link found"
else
echo "short link not found"
fi