Search

seq : To generate a sequence of numbers

seq can be used to generate a sequence of numbers separated by any kind of separator as required.



By default seq generates the range of numbers starting from 1. We can generate the list from any starting number by mentioning the stating number also as an argument.



By default the numbers are generated separated by new lines. We can change the separator by using the option -s



We can make the number to be of equal length using the option -w



The increment by default is by one number,this can be changed by passing the increment number as the second argument.



The number 2 as the second argument indicates that the increment is to be by two numbers.

We can also generate a reverse seq of numbers




Follow by Email