Simplify the command in grepHTTTP and print the files where the string is found.
This commit is contained in:
parent
564436828e
commit
5afc9efc0e
|
@ -1,6 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
if [[ "$(find . -name *.java | xargs grep 'http://')" ]]; then
|
||||
echo "http protocol found"
|
||||
else
|
||||
echo "http protocol not found"
|
||||
fi
|
||||
|
||||
find . -name '*.java' -exec grep 'http://' /dev/null {} +
|
Loading…
Reference in New Issue