The expression $(...)
executes the command and replaces the output of the command. Try something like this:
echo $(date)
So, in this example, he takes the output of the readlink
command and assigns it to JAVA_HOME
(after running through sed
).
Take a look at the bash
man page for more details.
source share