Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. #!/bin/bash
  2. for i in *
  3. do
  4. if [ -s $i ]; then
  5. echo "$i is a file and the size is greater than zero."
  6. else
  7. echo "$Deleting now "
  8. rm -rf $i
  9. fi
  10. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement