Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Camilo Flores llekn

🎯
Focusing
Block or report user

Report or block llekn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@llekn
llekn / for-each-dir.py
Last active Aug 29, 2015
Python script to execute a shell command on every sub-folder of current folder
View for-each-dir.py
#!/usr/bin/env python3
'''Receives a command as argument and executes it on
every sub-folder of current folder.
Useful for commands that should be run multiple times,
like doing a git fetch on a bunch of repos.
Usage: ./for-each-dir.py "command"
Example: ./for-each-dir.py "git fetch"
'''
You can’t perform that action at this time.