The syntax of Sequence Expression is: Here the start and end values are mandatory and can be either characters or integers. Next, the increment value is optional and if we use it then it must be separated from the End value with two dots. If we do not use an increment value then the default value would be 1.
Sequence Expression Examples in Bash
Let’s take some examples of printing the sequence values in bash shell. We also include examples of defining range with loops in shell scripting.
Conclusion
In this tutorial, You have learned to create or print the sequences in bash shell. It also helped you to define a specific range with loops.