26 votesbmb commented
You shouln't use backticks anymore, always use $(). $() is the POSIX standard for command substitution. There are many situations in which using backticks to perform command substitution will result in security related bugs. Additionally, using backticks within nested substitutions requires escaping and leads to more bugs.