Remember that invoking commands has a cost (irrespective of what they do). This can have very negative impact on performance if you put them into a loop that will have multiple iterations. In case you need to process the output in some way, consider using awk
. It is very powerful and can quickly handle a lot of input:
find . -type f | awk '{print}'