I want to extract number 26 from res.txt which has :
numid=6,iface=MIXER,name='Speaker Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=52,step=0
: values=26,26
| dBminmax-min=-52.00dB,max=0.00dB
I tried
sed -e 's/numid.*values=\(.*\)\,.*/\1/g' res.txt
but that didnt work. Can someone help me with this? I can also use grep or awk to extract.