typora/note/linux/command/seq 构造序列.md

37 lines
471 B
Markdown
Raw Permalink Normal View History

2024-12-11 21:48:55 -05:00
![67afdff1310314bd312eebfdafa233a6.png](../../../_resources/67afdff1310314bd312eebfdafa233a6.png)
- seq 5
```
me@me-EQ59:~/shell_demo/scripts/shell01$ seq 5
1
2
3
4
5
me@me-EQ59:~/shell_demo/scripts/shell01$
```
- seq 5 10
```
me@me-EQ59:~/shell_demo/scripts/shell01$ seq 5 10
5
6
7
8
9
10
me@me-EQ59:~/shell_demo/scripts/shell01$
```
- seq 10 -1 1
```
me@me-EQ59:~/shell_demo/scripts/shell01$ seq 10 -1 1
10
9
8
7
6
5
4
3
2
1
me@me-EQ59:~/shell_demo/scripts/shell01$
```