i have the following string
Device Enabled (126): 1
can i extract in a variable VAR only 126 and NOT (126) ?
p.s 126 = random number
please help me !
EDIT i paste my script so u can understand the solution
ID=`xinput list | grep -i TouchPad | awk -F= '{ print $2}' | awk '{print $1}'`
VALOREENABLE=`xinput list-props $ID | grep -i Enabled |awk '{print $3}'`
VALORESENSE=`xinput list-props $ID | grep -i Profile |awk '{print $3}'
in my case VALOREENABLE = (126) and VALORESENSE (256) i want 126, 256 only without () :(`