https://gist.github.com/sl5net/959773b588556b7f68000de75f1a0b0c
example result:
2021-03-01_0001 pinoto (1106)_maur_vs_seeh (929)_maur
example its changing the folder:
~/snap/0ad/201/.local/share/0ad/replays/0.0.24/2021-03-19_0001
~/snap/0ad/201/.local/share/0ad/replays/0.0.24/2021-03-19_0001 0AD1v1 x(Mauryans) VS Dido(Carthaginians), 2xSpeed, random Map maps∕random∕mainland