0

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?

vidit
  • 6,293
  • 3
  • 32
  • 50

1 Answers1

1

Did u try this ?

var=$(acpi -t)

RBH
  • 572
  • 4
  • 11