I like gnome-do. I know people who don’t, but that’s cool. However, gnome-do’s files and folders plugin will only index 3000 files. It complains if it is indexing more than that, but doesn’t offer any insights about why it is complaining. More exasperatingly, the error message says something like “Do you really need access to all these files?”
You can do something like find ./ | wc -l to find everything in the directory you’re in and pipe that to word count, but only count lines (-l). A little bit of tinkering revealed that Audacity data directories can contain thousands of little files, so I made sure to add my Audacity working directory to the plugin’s ignore list, but I’m still indexing too many files.
I’m not going to learn python if I don’t tackle problems like this in python, but I wrote a little bash script to print a list of directories that contain more than X files.
It took me longer than it should have to figure out that > is the wrong operator: -gt and \> both work, however.
I’m still working on it — it could definitely be more elegant. If anyone wants to walk me through improving the structure of this script, I’m all ears, here or there.