Dollar Parentheses

Dollar parens $() are mostly a Bash thing. The stuff inside the parentheses is executed as if typed on the command line and anything it would print is replaced at that place.