This new script (thanks SwedishGojira) runs perfectly in LibreElec and not in Lakka… why?
#!/bin/bash
rm Favorites.txt
touch Favorites.txt
chmod 777 Favorites.txt
for tagfile in *.tag; do
romlist="$(echo $tagfile|cut -f1 -d '.')"
while read line; do
title="${line/$'\r'/}"
grep "^${title};" "${romlist}.txt" >> Favorites.txt
echo "${tagfile}"
echo "${title}"
echo "${romlist}.txt"
done < "${tagfile}"
done
wc -l Favorites.txt
It also works perfectly in raspbian… its amazing!!!
Copying the romlists to /storage folder, in lakka, you can check the operation of the script, by ssh.
Romlists folder (with the script “fav.sh”):
(https://drive.google.com/open?id=13-LUJMbHDMuFzq62A8mS3jT1P8JHdasA)