Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


sequence_of_numbers

==== Using seq to Create a Sequence of Numbers

$ seq -w -s " " 5 18
05 06 07 08 09 10 11 12 13 14 15 16 17 18

$ seq -w -s " " 9 3 48
09 12 15 18 21 24 27 30 33 36 39 42 45 48

-w adds zero padding

-s replaces the new line with a space

You can set the interval as shown with the "48" above.

sequence_of_numbers.txt · Last modified: 2022/12/15 09:54 by juckins