Requesting help for TL1 scripting

HI Everyone,

I have TL1 script which takes the temperature of a CISCO equipment through TELNET now i need to save the output of the command to a csv file .

Like this is the output

> RTRV-SHELFSTAT:AB1S2a::1;

   AB1S2a 2016-02-03 22:29:39
M  1 COMPLD
   ":SHELF,TEMPERATURE=33C,VOLTAGEA=54469,VOLTAGEB=54442,"

i need just to get the Temperature which is 33C to a CSV file .

and i telnet to the equipment through expect script which is a child to a bash script.

To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags

```text
 and 
```

by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums

How about

awk 'match ($0, /TEMPERATURE=[^,]*/) {print substr ($0, RSTART+12, RLENGTH-12)}' file
33C

If happy, redirect to your .csv file.