RosettaCodeData/Task/Repeat-a-string/UNIX-Shell/repeat-a-string-3.sh

3 lines
35 B
Bash

i=5
eval "printf 'ha'%.0s {1..$i}"