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