I wonder how an equivalent Guile based script would look like 🤔
It shouldn't be too hard, considering Guile comes with modules for filesystems and Unix pipes.
The Bash script has some ugliness (It creates a temporary file for the song name, then deletes it afterward) that I can avoid in Guile, since I'm a little bit more comfortable in Guile than Bash.
May I see the bash source ?
functional.cafe is an instance for people interested in functional programming and languages.