Repeat a string: Difference between revisions
Content added Content deleted
(Add Bash example) |
|||
Line 68: | Line 68: | ||
<lang bash>printf "ha%.0s" {1..5}</lang> |
<lang bash>printf "ha%.0s" {1..5}</lang> |
||
A slightly more generic version |
A slightly more generic version |
||
<lang bash> |
<lang bash>repeat() { |
||
⚫ | |||
r=5 |
|||
}</lang> |
|||
⚫ | |||
=={{header|Batch File}}== |
=={{header|Batch File}}== |