On 2024-03-08 05:47, Pádraig Brady wrote:
seq $a | xargs printf -- 'x%.0s'printf "%${a}s" '' | tr ' ' x yes x | head -n$a | tr -d '\n'
Oh, I like those! Unfortunately the printf solution silently fails for me when a=10000000000 due to a bug in Bash. Perhaps I'll get up the energy to propose a fix (at least it should *noisily* fail :-).