Skip to content

Instantly share code, notes, and snippets.

@Lokua
Last active September 3, 2019 03:56
Show Gist options
  • Save Lokua/c6cc65e29c739a2f67b29ab54aa19c9b to your computer and use it in GitHub Desktop.
Save Lokua/c6cc65e29c739a2f67b29ab54aa19c9b to your computer and use it in GitHub Desktop.
recursively removes node_modules folders
#! /bin/bash
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment