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


You need to login to view comments.