I have value which stores the present resolution, such as: $2 = 1920×1080. I would like to split the value based on the x character and store the result in 2 variables. With the example above, the first variable will store 1920 and the second 1080. I would then like to make the definition for a print command based on these two valyues.
What is the best way to do this?
If I understand your needs correctly.
I hope this helps.