Last Updated: February 25, 2016
·
934
· darktim

Count files in subdirs

Aliased to "lll", you may put this in your .bash_aliases

alias lll='for i in *; do echo "`ls -1aRi "$i" | awk "/^[0-9]+ / { print $1 }" | sort -u | wc -l` $i" ; done | sort -n'

This may be usefull, if your need to find the directory which causes rsync to be very slow...