in reply to Re: Get folders in a directory with 20k directories?
in thread Get folders in a directory with 20k directories?

Shouldn't that be the following?

ls -l |gzip > ls-l.gz