mirror of
https://github.com/CyC2018/CS-Notes.git
synced 2025-07-04 23:58:38 +08:00
auto commit
This commit is contained in:
@ -973,6 +973,8 @@ $ printf '%10s %5i %5i %5i %8.2f \n' $(cat printf.txt)
|
|||||||
|
|
||||||
## awk
|
## awk
|
||||||
|
|
||||||
|
可以根据字段的某些条件进行匹配,例如匹配字段小于某个值的那一行数据。
|
||||||
|
|
||||||
```html
|
```html
|
||||||
$ awk '条件类型 1 {动作 1} 条件类型 2 {动作 2} ...' filename
|
$ awk '条件类型 1 {动作 1} 条件类型 2 {动作 2} ...' filename
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user