Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #By: Guitar-Player <aprendiendofisica(at)aol.com.mx>
- HOMED=$PWD
- DIRS=$(ls -l $HOMED | grep ^d | awk '{ print $8}')
- for d in $DIRS
- do
- [ -d $d ] && [ $(ls -l $d | wc -l) -eq 1 ] && rmdir $d || :
- echo 'Ready...'
- done
Advertisement
Add Comment
Please, Sign In to add comment