Run the same shell command in multiple folders:
This is all you need:
for dir in ~/parent-folder/* ; do (cd "$dir" && your-command && cd ".."); done
Written by Daniel Wehner
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Related Tags
#bash
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#