Skip to content

Instantly share code, notes, and snippets.

@rot26
Created February 17, 2020 22:54
Show Gist options
  • Save rot26/a0279709c6da4fcc1dd03d8b596a9be6 to your computer and use it in GitHub Desktop.
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
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