Created
October 11, 2022 09:46
-
-
Save tacsio/eb802c5c6226bb6e1442e7e691d6e4ec to your computer and use it in GitHub Desktop.
awk if variable
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
echo $CI_COMMIT_REF_NAME | awk -v t=$TAG -F _ '{ if (t == $AMBIENTE) { print "ambientex" } else { print tolower($1)}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment