I'm working on saving high scores for my Game Elf JAMMA board (412-in-1). I'm currently following this tutorial. I'm trying to run this command
mv hiscore(pre_mame0133u1).dat /mnt/three/usr/local/share/xmame/hiscore.dat
but as you can see in my screenshot, it's returning an error
bash: syntax error near unexpected token '('
Best Answer
bash: syntax error near unexpected token '('
You need to escape the brackets:
Note:
For future reference you can use ShellCheck to find bugs in your bash code. Entering the uncorrected script gives the following:
Correcting the first error:
And correcting the second error:
Further Reading