I have the following string in bash
str=\"kallel\"
I want to create from str an str2. The str2 conta
str
str2
I am 100% stealing this answer from Bash : Duplicate a string variable n times but I thought it bore repeating (despite being on a 6 year old question):
$ yes "kallel" | head -20 | xargs | sed 's/ //g' | cut -c1-20 kallelkallelkallelka