pcoughlin
1/12/2017 - 1:37 AM

Counts files in folders listed as parameters

Counts files in folders listed as parameters

#!/bin/bash
# Counts number of files in dir+subdir(s)
# Use on Host accounts with limit on number of files
echo "Processing: '$@' "
for var in "$@"
do
    echo $var $'\t' "=" `find $var | wc -l`
done