Skip to content

Instantly share code, notes, and snippets.

@onmotion
Created August 14, 2018 10:36
Show Gist options
  • Save onmotion/9252fa56de92cc61e900209b2bff8ce1 to your computer and use it in GitHub Desktop.
Save onmotion/9252fa56de92cc61e900209b2bff8ce1 to your computer and use it in GitHub Desktop.
remove all directories except
#!/bin/bash
find . ! -name 'thumbnails' -type d -maxdepth 1 -exec rm -rf {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment