Anonymous user
Repeat a string: Difference between revisions
→{{header|UNIX Shell}}
m (→{{header|VBA}}) |
|||
Line 856:
eval "printf '${1}%.0s' {1..${2}}"
}</lang>
{{works with|Bourne Shell}}
<lang sh>width=72; char='='
head -c ${width} < /dev/zero | tr '\0' "$char"</lang>
=={{header|Ursala}}==
|