$ find -type f -exec grep -IH 'word' {} \;

También es posible hacerlo de esta forma:

$ find . -name "*.java" -exec sh -c 'grep -IHq "import" "$1" && echo "Found in $1"' sh {} \;

Sorry, the comment form is closed at this time.

© 2020 Goose Workshop Suffusion theme by Sayontan Sinha