I have the following folder structure:
Approvals_Share
1 CUST APPROVAL
2 LICENSE APPROVAL
CANADA INSCRIBE
z-remove
There are multiple subfolders and illustrator files “.ai” inside each folder
If I perform a find individually on each folder I get the results back in the amount of time specified below between square brackets:
1 CUST APPROVAL: [14m 19s]
2 LICENSE APPROVAL: [10m 17s]
CANADA INSCRIBE: [13s]
z-remove: [2s]
Here is a sample shell command that I use to lists the z-remove folder
cd '/Volumes/Box/Approvals_Share/z-remove/'
find . -name '*.ai' -not -name '.*' > output.txt
This task takes only 2 seconds to complete, however if I run the same command on the parent folder Approvals_Share excluding all folders except z-remove the task takes 3m 27s. I was expecting it to be 2s or way closer. Here is the shell command I’m using:
cd '/Volumes/Box/Approvals_Share/'
find . -name '*.ai' -not -name '.*' -not -path './2 LICENSE APPROVAL/*' -not -path './1 CUST APPROVAL/*' -not -path './CANADA INSCRIBE/*' > output.txt
Is there a way to speed up the result?