-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathseq.sh
More file actions
58 lines (29 loc) · 608 Bytes
/
seq.sh
File metadata and controls
58 lines (29 loc) · 608 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
## Integer sequences
seq 3
seq 25434 25437
seq -5 -3
seq 1000 5 1010
seq 3 1
seq 3 -1 1
seq 5 -5 -10
## Floating-point sequences
seq 0.5 3
seq 0.25 0.33 1.12
seq 1.2e2 1.22e2
seq 1.2e2 0.752 1.22e2
## Customizing separator
seq -s' ' 4
seq -s: -2 0.75 3
seq -s' - ' 4
seq -s$'\n\n' 3
## Leading zeros
seq 008 010
seq -w 8 10
seq -w 0002
## printf style formatting
seq -f'%g' -s: 1 0.75 3
seq -f'%.4f' -s: 1 0.75 3
seq -f'%.3e' 1.2e2 0.752 1.22e2
## Limitations
seq 100000000000000000000 3333 100000000000000010000
seq 100000000000000000000000000000 100000000000000000000000000005