Here is a bash script I came up with to create playlists on Sansa music player, on Linux
** read more **
I was wondering if you have v1 or v2 of the sansa player?
I have a E260.
System Version : 01.02.18A
I get the error
./sansa.sh: 38: Syntax error: “(” unexpected
if I execute your script
this is because of the function definition
“function debug_echo ()”
if I change the first line in the script to #!/bin/bash instead of #!/bin/sh, it works. So the shell sh on my system does not support ths function declaration.
Moreover, I get
iconv: illegal input sequence at position 843
iconv: illegal input sequence at position 8882
and some more iconv error messages, but I havent checked yet what’s the problem
good catch, it is a BASH script. So changing
is the way to go.
Not sure about the iconv errors, though.