Created
December 28, 2018 16:50
-
-
Save Tim-Schwalbe/1c87329c83eb164f4dd5dd6b6c7501c2 to your computer and use it in GitHub Desktop.
BASH: one liner to read properties files in bash script
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
app.config.name=test app | |
app.config.url= www.test |
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
prop() { grep "${1}" maintenance.properties | cut -d'=' -f2; } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment