@clet solution uniquement en ligne de commande:
En shell linux (ssh) (via putty sous windows) tu peux lancer une recherche couplée à un "grep" , dans une boucle.
par exemple, le gamelist de la NES contient (entre autre)
| <game id="4178" source="theGamesDB.net"> |
| <path>./1942 (Japan, USA).zip</path> |
| <name>1942 (Japan, USA)</name> |
| <desc>1942 is set in the Pacific theater of World War II. The goal is to reach Tokyo and destroy the entire Japanese air fleet. The player pilots a plane dubbed the "Super Ace" (but its appearance is clearly that of a Lockheed P-38 Lightning). The player has to shoot down enemy planes; to avoid enemy fire, the player can perform a roll or "loop-the-loop".</desc> |
| <image>./downloaded_images/1942 (Japan, USA)-image.jpg</image> |
| <rating>0.73333</rating> |
| <releasedate>19861101T000000</releasedate> |
| <developer>Capcom / Micronics</developer> |
| <publisher>Capcom</publisher> |
| <genre>Shooter</genre> |
| <players>2</players> |
| <region>Japan, USA</region> |
| <romtype>Original</romtype> |
| </game> |
ça donnerait
| cd /recalbox/share/roms/ |
| for i in `find . -type d` ; do grep "<name>1942" $i/gamelist.xml; done |
Pour ce résultat:
<name>1942 (Japan, USA)</name>
Ensuite on remarque que la balise <image> est 2 lignes en dessous:
Tu peux aller plus loin avec grep: grep -A2 "<name>1942" | grep -v "<desc>"
te prendra les 2 lignes après "<name>1942" (le -A2
) , tout en cachant la balise <descr> (le -v
)
ça retournera
| <name>1942 (Japan, USA)</name> |
| <image>./downloaded_images/1942 (Japan, USA)-image.jpg</image> |
(donc tu peux appliquer ce dernier principe pour afficher "<genre>")
.... Mais c'est une solution un peu dégueulasse et vmt pas user friendly -_-