Good morning.<br><br>I am trying to get some information from the ipmitool specifically the temperature readings for the CPUs and the ambient temperature. I can run the command and it gives me the 3 values on separate lines. For other sensors I can just use grep to find the distinct name of the sensors but with temperature they are all similar. The CPU values are named Temp and the ambient temperature is called Ambient Temp. So while I can run the output through grep to find the ambient temperature there isn't anything distinct for the two CPU values. But they always show up in the same order so what I would like to do is have a way to grab a specific line and save that into a variable. I am sure there is a simple way to do this I am just not sure where to look for it.<br>
<br>I would prefer to avoid using perl and just stick to shell scripting if possible.<br><br>Thanks for any suggestions.<br>Rob<br>