Equivalent of print "-"x20 of perl in Bash or command line

Posted by khmarbaise on Stack Overflow See other posts from Stack Overflow or by khmarbaise
Published on 2010-04-20T09:26:32Z Indexed on 2010/04/20 9:43 UTC
Read the original article Hit count: 259

Filed under:
|
|
|

In perl you can simply write print "-" x 20 and you get a line with dashes...but i need the same thing in bash/commandline on linux without perl/(g)awk etc. any ideas? The intention is to use it in the -exec of the find command and i want to prevent using simple echo "---------" ...

© Stack Overflow or respective owner

Related posts about bash

Related posts about linux