Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- find . -type d -empty -print -delete
- $ mkdir -p 1/2/3/4/5/6
- $ tree
- .
- `-- 1
- `-- 2
- `-- 3
- `-- 4
- `-- 5
- `-- 6
- 6 directories, 0 file
- $ find . -type d -empty -print -delete
- ./1/2/3/4/5/6
- ./1/2/3/4/5
- ./1/2/3/4
- ./1/2/3
- ./1/2
- ./1
- $ tree
- .
- 0 directory, 0 file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement