I have the bash command:
./manageService.bat info
The output of this command in the console:
Service v2
The Service is configured.
Home directory: C:\Program Files\my\Service\
Find log at: C:\Users\admin\AppData\Local\Temp\service_133538.log
Now I need to write the result of this command to the variable. I tried to find it in the Internet, and I found the solution: variable=$(command)
I tried this:
variable1=$(./manageService.bat info)
And then I looked the variable: echo $variable1 and I saw in the console:
Find log at: C:\Users\admin\AppData\Local\Temp\service_133642.log
I see that only the last line of the command output was written to the variable. Tell me, please, how can I record the whole command output to the variable?