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.&nbsp; I can run the command and it gives me the 3 values on separate lines.&nbsp; For other sensors I can just use grep to find the distinct name of the sensors but with temperature they are all similar.&nbsp; The CPU values are named Temp and the ambient temperature is called Ambient Temp.&nbsp; So while I can run the output through grep to find the ambient temperature there isn&#39;t anything distinct for the two CPU values.&nbsp; 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.&nbsp; 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>