NickTheGreek 160 Report post Posted July 30, 2017 ωραίο άρθρο αυτο και με πολλαπλές λύσεις, για παράδειγμα: find . -type d -print0 | while read -d '' -r dir; do files=("$dir"/*) printf "%5d files in directory %s\n" "${#files[@]}" "$dir" done αλλά αυτό είναι το πιο ενδιαφέρον: du -a | cut -d/ -f2 | sort | uniq -c | sort -nr https://stackoverflow.com/questions/15216370/how-to-count-number-of-files-in-each-directory Quote Share this post Link to post Share on other sites
NickTheGreek 160 Report post Posted March 13, 2018 always useful Quote Share this post Link to post Share on other sites