Counting

In the beginning I used TOTAL=`ls /d2lmig/*/*/bak/*/* | wc -l` to get a total count. All was good. Until at around 55,000 files I got: -bash: /bin/ls: Argument list too long. Then I used TOTAL=`find /d2lmig/*/*/bak/*/* -name *.bak | wc -l` to get a total count. All was good. Until at around 90,000 files I got: -bash: /usr/bin/find: Argument… Continue reading Counting