How do I set a variable to the output of a command in Bash?
How do I set a variable to the output of a command in Bash?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!
(stackoverflow.com/users/570402/john)John |
(stackoverflow.com/users/8454/andy-lester)Andy Lester |
(stackoverflow.com/users/326370/ilya-kogan)Ilya Kogan |
(stackoverflow.com/users/1765658/f-hauri-give-up-github)F. Hauri - Give Up GitHub |
(stackoverflow.com/users/563620/bitwelder)bitwelder |
(stackoverflow.com/users/2515498/mlsc)MLSC |
A special thanks goes out to the (https://stackoverflow.com/questions/4651437/how-do-i-set-a-variable-to-the-output-of-a-command-in-bash)Stackexchange community |
I wish you all a wonderful day! Stay safe :)
shell bash command-line unix posix