On 26/10/26 at 18:15, Greg Wooledge wrote:
> Finally, I wonder what you intend to*do* with the output of echo here.
> Why do you want a stream of zero-padded three-digit numbers separated
> by newlines?
>
> Whatever you're going to do with this stream of characters, there's
> probably some easier or more efficient way to do it. But we need to
> know what the goal is, so we can advise you.
As usual thanks Greg for the clarifications. I'm still playing with the RNG code of the script that shuffle a playlist, since it depends on a list of filenames in a given directory, I'd like now that the indexed array "playlist" be populated by a sequence of numbers instead of filenames, this works:
playlist=({001..136})
but the whole sequence is expanded on a single line. I'd like that each number be separated by newline \n.
Kind regards,
--
Franco Martelli