Repeat String

Repeat a string a specified number of times to create a new concatenated string.

Code

General
printf "%0.s$str" $(seq 1 $count)

Parameters

The string to repeat

Number of times to repeat

Server

More Bash Snippets