Reputation: 303
I need help with bash command that recursively cp all the file or subdirectory inside but also exclude some specific file like "*.min.min.js".
Upvotes: 0
Views: 78
Reputation: 21
Or use tar
tar c --exclude "*.min.min.js" source_dir | tar -C /destination xv
Upvotes: 2
Reputation: 75488
Use rsync:
rsync -av --exclude '*min.min.js' parent_dir dest_dir
Upvotes: 2