grep -r "print " */*/*/*/*/*.py */*/*/*/*.py */*/*/*.py */*/*.py
I want to look for all the ocurrences of "print "
in all .py
files in subdirectories inside my current directory. I came up with the above command and it works, but I'd like to find some sort of way to have an arbitrary depth because some of my files are on a depth of 3, others on 4 and others on even higher depths.
I'm pretty sure I can maybe use find
and then pipe, but I'm not quite sure how.