Created
August 3, 2020 10:27
-
-
Save SeongJuMoon/005bc0dbfb4ac70dbb8fd5d783094013 to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| LIST=$(echo "<spec1>,<spec2>," | tr "," "\n") | |
| if [ -z $(which yq) ]; then | |
| echo "yq is not installed" | |
| exit 128 | |
| else | |
| for DISCOVERY in $LIST | |
| do | |
| echo "$DISCOVERY" | |
| #cat $FILE | yq w - $DISCOVERY $1 > $2 | |
| done | |
| fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment