Created
September 8, 2017 19:10
-
-
Save thedoc31/2a1852d56a36a44efd20d51a0db67351 to your computer and use it in GitHub Desktop.
One-liner to find bulk modified chef environment files and upload them all to chef
This file contains 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
git status | grep modified | grep json | sed 's/\(.*modified:\s*\)//' | while IFS='' read filename; do knife environment from file $(echo $filename); done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment