Add '27-01-2021-grepString/grepShortLink.sh'
add new script in order to retrieve google short linksmaster
parent
289496739f
commit
d5600373eb
@ -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
|
Loading…
Reference in New Issue