Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • There's one other problem probably related to $ sign: echo "Tomcat: $tomcat" acts as echo "Tomcat: omcat" in the output. Doubling the sign produced just Tomcat: $tomcat, but I need to retrieve the variable... Commented Oct 2, 2015 at 9:47
  • @TomášZato It's often a good idea to use curly brackets for variables, so as to be clear about where the variable name ends: ${tomcat}. Works in bash as well. Commented Oct 2, 2015 at 10:25
  • You might have to escape this $ as well, because otherwise it will be regarded as a makefile variable instead of a bash variable. Commented Oct 2, 2015 at 10:42