To run multiple commands on the output of find, they can be specified using the following method :
find . -name "*.txt" -exec echo {} \; -exec grep foo {} \;
To run multiple commands on the output of find, they can be specified using the following method :
find . -name "*.txt" -exec echo {} \; -exec grep foo {} \;