[EMAIL PROTECTED] schrieb: Norman, investigation ist simple: > * ls -lR | grep ^d | wc -l > > 11.735 seconds of real time to find 2,889 directories > This will put a directory of _all_ files on your harddisk into the pipe, grep will search through it and throw away most of it. > * find ./ -type d -print | wc -l > > 1.133 seconds to find 3,451 directories. > This will only put directory names into the pipe.
Command I has produced a whole lot more data that needed to be handled (and most of it thrown away afterwards), whereas command II only produced the data you wanted. But all that is probably way off-topic. Tobias > So, not only is find much faster, it finds more directories too. Hmmm. > Further investigation required methinks. > > > Cheers, > Norman. > > _______________________________________________ > QL-Users Mailing List > http://www.q-v-d.demon.co.uk/smsqe.htm > > _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
