How do I set a variable to the output of a command in Linux Bash Shell?

You can use $(command) or command and set a variable to the output of the command in Linux Bash Shell

Leave a Reply