Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I'm trying to put the output of the variable but it's getting an error

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"

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

IDSTYLUS=$(echo $GETSTYLUSID | cut -d " " -f 7)
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading