Better to explain on examples.
I can:
find . -name "*.py" -type f > output.txt
But how can I store the output to the same file for:
find . -name "*.py" -type f -exec grep "something" {} \
I can't just do
find . -name "*.py" -type f -exec grep "something" {} \ > output.txt