Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. !/bin/bash
  2. DIR="$1/*"
  3. MIN=$2
  4.  
  5. for dir in $DIR
  6. do
  7. if [[ -d $dir && $(du -s $dir | cut -f1) -lt $MIN ]]
  8. then
  9. echo rm -r $dir
  10. fi
  11. done
  12.  
  13.  
  14. bash "scriptname" $1 $2
  15. bash meetings . 5000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement