I\'m trying to figure out the best way to find the number of files in a particular directory when there are a very large number of files (more than 100,000).
I realized that not using in memory processing, when you have a huge amount of data, is faster than "piping" the commands. So I saved the result to a file and analyzed it afterwards: