I have the following string in bash
str=\"kallel\"
I want to create from str an str2. The str2 conta
str
str2
This should work:
str="kallel" str2="${str}" while (( ${#str2} < 20 )) do str2="${str2}${str}" done str2="${str2:0:20}"