当前位置:网站首页>Awk from getting started to being buried (2) understand the built-in variables and the use of variables in awk
Awk from getting started to being buried (2) understand the built-in variables and the use of variables in awk
2022-07-03 02:14:00 【Wonderful binary】
Learning any language starts with variables .
Built in variable table
| attribute | explain |
|---|---|
| $0 | Current record ( As a single variable ) |
| 1 1~ 1 n | The current record number n A field , Between fields by FS Separate |
| FS | Enter field separator Default is space |
| NF | Number of fields in the current record , How many columns are there |
| NR | The number of records that have been read , It's the line number , from 1 Start |
| RS | Separator default of the entered record Consider line breaks \n |
| OFS | Output field separator The default is also a space |
| ORS | Record separator for output , The default is line break |
边栏推荐
- Modify table structure
- 502 (bad gateway) causes and Solutions
- es6 filter() 数组过滤方法总结
- easyPOI
- easyExcel
- Startup mode and scope builder of collaboration in kotlin
- [camera topic] turn a drive to light up the camera
- 使用Go语言实现try{}catch{}finally
- 可視化yolov5格式數據集(labelme json文件)
- Missing library while loading shared libraries: libisl so. 15: cannot open shared object file: No such file
猜你喜欢

stm32F407-------IIC通讯协议

Bottleneck period must see: how can testers who have worked for 3-5 years avoid detours and break through smoothly

LabVIEW安装第三方VISA软件后NI VISA失效

Detailed introduction to the deployment and usage of the Nacos registry

MySQL学习03

Return a tree structure data

树形结构数据的处理

《上市风云》荐书——唯勇气最可贵

Learn BeanShell before you dare to say you know JMeter

PyTorch 卷积网络正则化 DropBlock
随机推荐
LabVIEW安装第三方VISA软件后NI VISA失效
Storage basic operation
技术大佬准备就绪,话题C位由你决定
Qt之QComboBox添加QCheckBox(下拉列表框插入复选框,含源码+注释)
微信小程序开发工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理问题
Leetcode 183 Customers who never order (2022.07.02)
File class (check)
Depth (penetration) selector:: v-deep/deep/ and > > >
The Sandbox阐释对元宇宙平台的愿景
Distributed transaction solution
es6 filter() 数组过滤方法总结
[Yu Yue education] China Ocean University job search OMG reference
require. context
去除网页滚动条方法以及内外边距
转载收录6.5大侠写的部分Qt开发经验
[camera special topic] Hal layer - brief analysis of addchannel and startchannel
Bottleneck period must see: how can testers who have worked for 3-5 years avoid detours and break through smoothly
通达OA v12流程中心
Leetcode(540)——有序数组中的单一元素
Redis:Redis的简单使用