Tom Söderlund
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

--

--

Tom Söderlund
Tom Söderlund

Written by Tom Söderlund

CTO. Dad. Feminist. Lover. Fan of AI 🧠, environment 🌎, lean startup 📊, surfskate 🛹, cappuccinos ☕ and movies 🎬. Still learning.

No responses yet