Skip to content

Commit

Permalink
adds find cheat to delete empty dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Jun 24, 2020
1 parent 260d937 commit 3c93beb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions navi/cheats/find.cheat
Expand Up @@ -3,4 +3,7 @@
# Exclude dir from results
find <ROOT_DIR> -type <TYPE> \( ! -name "<ROOT_DIR>/<EXCLUDE_DIR>/*" \)

# Delete empty directories
find <ROOT_DIR> -type d -empty -delete

$ TYPE: echo 'f d' | tr ' ' '\n'

0 comments on commit 3c93beb

Please sign in to comment.