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

3 lines
66 B
Bash

width=72; char='='
head -c ${width} < /dev/zero | tr '\0' "$char"