Tuesday, November 22, 2022

Find size of individual files of a particular extension in bash

 echo "enter extension"
read ext
for i in `find . -name "*.$ext" -type f`; do
   # echo "$i"
   echo `du -k "$i" | cut -f1`
done

No comments:

Post a Comment