The following command returns 2 lines and those are the temperatures of my CPU's:
acpi -t
How would I go about storing those 2 lines in a variable in a bash script so I can work with them?
The following command returns 2 lines and those are the temperatures of my CPU's:
acpi -t
How would I go about storing those 2 lines in a variable in a bash script so I can work with them?
Did u try this ?
var=$(acpi -t)