MoshiachNow
IS-IT--Management
How can one find all dirs that contain more then 1000 files?
Thanks
Long live king Moshiach !
Thanks
Long live king Moshiach !
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
find / -type d|while read dir
do
count=$(ls -l ${dir}|grep -c '^-')
if [ ${count} -gt 1000 ]
then
echo "${dir}: ${count} files"
fi
done