Nov 11, 2021
With this modification ("-exec echo \"{}\" \;"), it also works with spaces in path names:
find . -name "node_modules" -type d -prune -exec echo \"{}\" \; | xargs du -chs
With this modification ("-exec echo \"{}\" \;"), it also works with spaces in path names:
find . -name "node_modules" -type d -prune -exec echo \"{}\" \; | xargs du -chs
CTO. Dad. Feminist. Lover. Fan of AI 🧠, environment 🌎, lean startup 📊, surfskate 🛹, cappuccinos ☕ and movies 🎬. Still learning.