Can anyone offer reasons to prefer using find vs using a for loop to process files in a script?
In other words, which of the options below is better?
find
versus
for loop
Code what you mean,
and mean what you code!
But by all means post your code!
Razalas
In other words, which of the options below is better?
find
Code:
find . -name "*.ext" -exec do_something {} \;
versus
for loop
Code:
for file in *.ext
do
do_something $file
done
Code what you mean,
and mean what you code!
But by all means post your code!
Razalas