I want to write a script which takes two parameters, a string and a number. The script with print the string n time rounded with asterisks. So for ex. script "Hello World!" 3 will print:
**************
*Hello World!*
*Hello World!*
*Hello World!*
**************
How can I do this?
printf '*HelloWorld*\n%.0s' {1..3}printfstatement? As you could simply just perform aprintf '************\nbefore and after your existingprintf, right?echo $1 | sed 's/./*/g'