mcclnx mcc wrote: > we plan to count how many files belong to that group. For example HR or Finance. > not sure why you need to change the file's group to do this. for g in hr finance; do echo $(find . -type f -group $g |wc -l) files in group $g done