How do I set a variable to the output of a command in Bash? on September 11, 2023 Bash set variable to command output Set variable to command output in Bash +