I want to create a list of mp3 files like a 1.mp3|a 2.mp3
.
I have tried echo ${(j:|:)$(echo *.mp3)}
and some variations of it, but they don’t work:
# too much splitting
01|The|Magic|Finger|01.mp3|02|The|Magic|Finger|02.mp3|03|The|Magic|Finger|03.mp3|04|The|Magic|Finger|04.mp3|05|The|Magic|Finger|05.mp3|06|The|Magic|Finger|06.mp3
# too much quoting
01 The Magic Finger 01.mp3 02 The Magic Finger 02.mp3 03 The Magic Finger 03.mp3 04 The Magic Finger 04.mp3 05 The Magic Finger 05.mp3 06 The Magic Finger 06.mp3
I don’t want to create functions or variables for doing this. (It can be trivially done.)