In Python strings can be "multiplied" to repeat them a number of times:
test="----"
print(test)
test="----"*10
print(test)
#output
----
----------------------------------------
Is there an equivalent in bash? I tried *
but it doesn't work:
$ Test2="----"
$ echo $Test2
----
$ echo ${Test2}*5
----*5
$ echo $Test2*5
----*5
$ echo echo $[Test2]*5
-bash: ----: syntax error: operand expected (error token is "-")
$ echo $(Test2)*5
Test2: command not found