0

I am trying to get the stylus id number of my device and I can't assign it in a variable. If I echo it, the line of code is working.

GETSTYLUSID=`xsetwacom list devices`
echo $GETSTYLUSID | cut -d " " -f 7

IDSTYLUS=$GETSTYLUSID | cut -d " " -f 7

echo "put it in idstylus: $IDSTYLUS"
Rocky6297
  • 3
  • 1

1 Answers1

0
IDSTYLUS=$(echo $GETSTYLUSID | cut -d " " -f 7)
Beta
  • 96,650
  • 16
  • 149
  • 150