I have a lot of directories in the initial folder and I want to zip everything , but excludeall the node_modules
folder of each directory , I tried this:
zip -r all_repos.zip . -x '*node_modules*'
But it doesn't exclude all sub-folders.
Any idea how to do it recursively ?