I want to define numbered string in series in bash such as follows:
String1
String2
String3
String4
String5
What I did till now is as follows which it does not work well.
#!/bin/bash
str_name='String'
for i in `seq 1 5`
do
expr=$(($str_name + $i)) #this part is what I cannot deal with it.
echo $expr
done
Thanks
printf "%s\n" "String"{1..5}?