Posts Seq Usage
Post
Cancel

Seq Usage

Basic usage of CentOS command, seq

To print numbers in sequence from A to B

1
seq 8 11

seq

Print numbers in sequence with equal width, try seq -w 7 9 and seq -w 9 101 to see the differences

1
seq -w 8 11

seq

Print numbers in sequence with designated separator

1
2
seq -w -s " " 8 11
seq -w -s "|" 8 11

seq
seq

This post is licensed under CC BY 4.0 by the author.