This question already has an answer here:

When you want to return a command line output, you may consider using two methods: `cat file` or $(cat file). As far as I know, they are equivalent before my eyes.

Is there a difference between both? If so, what's the difference please?

marked as duplicate by manatwork, Chris Down, slm, choroba, Stéphane Chazelas Sep 27 '13 at 9:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.