Recently I installed lm-sensor for monitoring my CPU temperature. I am monitoring it by this command in the terminal:
while [ true ]; do sensors; sleep 1; done
But I need to access my temperature after I run some stress test on the CPU to analysis some data. Is there a command that can write my temperature into a file during my stress test?