Monday, 10 April 2023

Using find with multiple exec flags.

# Find all python files and see if any contain a particular string find . -name '*.py' -exec echo {} \; -exec grep -e 'usr/bin' {} \;