Created
February 17, 2020 22:54
-
-
Save rot26/a0279709c6da4fcc1dd03d8b596a9be6 to your computer and use it in GitHub Desktop.
[xargs-git-status] using a list of directories, cd and perform operation #shell #fav #git #xargs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat directories.txt | xargs -L 1 sh -c 'cd "$0" && pwd && git status' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment