How can I repeat the character - n times in shell? I have read and tried this, but this does not work for -. It throws error invalid option>
-
invalid option>
jot can do it, with no bashisms:
jot
jot -s '' -b - 100
seq too, but not as well, it needs a tr:
seq
tr
seq -s- 100 | tr -d '[0-9]'