I am trying to read raspberry pi resolution using the tvservice command into two variables: X & Y.
When running:
tvservice --status | awk '{print $9}'
I am getting:
1920x1800
Which is exactly what I am looking for.
What I am trying to figure out, is how to split them into two bash variables where X=1920 and Y=1800 so I can use them later on in my script.