Skip to content

Instantly share code, notes, and snippets.

@Tim-Schwalbe
Created December 28, 2018 16:50
Show Gist options
  • Save Tim-Schwalbe/1c87329c83eb164f4dd5dd6b6c7501c2 to your computer and use it in GitHub Desktop.
Save Tim-Schwalbe/1c87329c83eb164f4dd5dd6b6c7501c2 to your computer and use it in GitHub Desktop.
BASH: one liner to read properties files in bash script
app.config.name=test app
app.config.url= www.test
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