How do I iterate over a range of numbers in Bash when the range is given.
my code is like
for i in {1..5}
do
echo "Welcome $i times"
done
And I am expecting
Welcome 1 times
Welcome 2 times
...
However I got something like
Welcome {1..5} times
my bash version is
GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>