Linux command to repeat a string n times

bashcommand linelinuxshelltext manipulation

Is there any built-in Linux command that allows to output a string that is n times an input string??

Best Answer

adrian@Fourier:~$ printf 'HelloWorld\n%.0s' {1..5}
HelloWorld
HelloWorld
HelloWorld
HelloWorld
HelloWorld
adrian@Fourier:~$