I am thinking of using sed for reading .properties file, but was wondering if there is a smarter way to do that from bash script?
This would probably be the easiest way: grep + cut
# Usage: get_property FILE KEY function get_property { grep "^$2=" "$1" | cut -d'=' -f2 }
2.1m questions
2.1m answers
60 comments
57.0k users