alternative find&grep syntax
This commit is contained in:
parent
08296aacd2
commit
dddf360fb1
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
out=`find . -name '*.java' -exec grep 'http://' /dev/null {} +`
|
||||||
|
if [[ -n "${out}" ]]; then
|
||||||
|
echo "HTTP protocol found in "
|
||||||
|
echo "${out}"
|
||||||
|
else
|
||||||
|
echo "HTTP protocol not found"
|
||||||
|
fi
|
Loading…
Reference in New Issue