@ronbo85 said in Control Panel Layout images:
In bash scripting, how do I get iterative values? (load 'em into arrays?)
Yes, you can use arrrays.
And when it comes to single elements (miscDetails) vs. multiple (button labels), would I need individual XMLStarlet calls? (it's a nice, and compact language, but I'm having a hard time wrapping my head around how best to code it).
My example shows everything in one call, but you can run separate commands if you want to get different values without parsing the output.
For instance, to get the contents of the miscDetails node:
xmlstarlet sel -t -m '//game[@romname="roundup"]/miscDetails' -v "text()" control.xml
If you want to get the how many buttons player1 has :
xmlstarlet sel -t -m '//game[@romname="roundup"]/player[@number="1"]' -v "@numButtons" -n control.xml