Skip to content

Instantly share code, notes, and snippets.

@motss
Created September 15, 2016 17:42
Show Gist options
  • Save motss/c98a0c7ee032aa009ef69445bbe5dc37 to your computer and use it in GitHub Desktop.
Save motss/c98a0c7ee032aa009ef69445bbe5dc37 to your computer and use it in GitHub Desktop.
Find and remove files and directories
// http://superuser.com/questions/602385/find-and-delete-all-the-directories-named-test-in-linux
// find <directory_location> -name <regex_of_file_or_directory> -type <type> -exec <command>;
find . -name bower_components -type d -exec rm -rf {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment