if directory size is greater than X bytes, echo path


/ Published in: Bash
Save to your folder(s)

find directory, which size is greater than 1000000 bytes, echo path/


Copy this code and paste it in your HTML
  1. for D in $(find ./ -maxdepth 1 -type d); do if [ $(du -sb $D |awk '{print $1}') -ge 1000000 ]; then echo $D;fi; done

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.