/ Published in: Bash
find directory, which size is greater than 1000000 bytes, echo path/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
for D in $(find ./ -maxdepth 1 -type d); do if [ $(du -sb $D |awk '{print $1}') -ge 1000000 ]; then echo $D;fi; done