当前位置:网站首页>awk从入门到入土(2)认识awk内置变量和变量的使用
awk从入门到入土(2)认识awk内置变量和变量的使用
2022-07-03 02:13:00 【奇妙之二进制】
学习任何一门语言都是从变量开始。
内置变量表
属性 | 说明 |
---|---|
$0 | 当前记录(作为单个变量) |
1 1~ 1 n | 当前记录的第n个字段,字段间由FS分隔 |
FS | 输入字段分隔符 默认是空格 |
NF | 当前记录中的字段个数,就是有多少列 |
NR | 已经读出的记录数,就是行号,从1开始 |
RS | 输入的记录的隔符默 认为换行符\n |
OFS | 输出字段分隔符 默认也是空格 |
ORS | 输出的记录分隔符,默认为换行符 |
边栏推荐
- What are the key points often asked in the redis interview
- Exception handling in kotlin process
- Qt之QComboBox添加QCheckBox(下拉列表框插入复选框,含源码+注释)
- 【Camera专题】HAL层-addChannel和startChannel简析
- Wechat applet development tool post net:: err_ PROXY_ CONNECTION_ Failed agent problem
- Solution for processing overtime orders (Overtime unpaid)
- Return a tree structure data
- String replace space
- easyPOI
- LabVIEW安装第三方VISA软件后NI VISA失效
猜你喜欢
Visualisation de l'ensemble de données au format yolov5 (fichier labelme json)
Solution for processing overtime orders (Overtime unpaid)
What are the differences between software testers with a monthly salary of 7K and 25K? Leaders look up to you when they master it
Job object of collaboration in kotlin
Detailed introduction to the usage of Nacos configuration center
《上市风云》荐书——唯勇气最可贵
The testing process that software testers should know
4. 类和对象
[shutter] pull the navigation bar sideways (drawer component | pageview component)
可視化yolov5格式數據集(labelme json文件)
随机推荐
[shutter] top navigation bar implementation (scaffold | defaulttabcontroller | tabbar | tab | tabbarview)
人脸识别6- face_recognition_py-基于OpenCV使用Haar级联与dlib库进行人脸检测及实时跟踪
深度学习笔记(持续更新中。。。)
【Camera专题】手把手撸一份驱动 到 点亮Camera
DML Foundation
What are the differences between software testers with a monthly salary of 7K and 25K? Leaders look up to you when they master it
stm32F407-------ADC
The testing process that software testers should know
require. context
[Yu Yue education] reference materials of love psychology of China University of mining and technology
《上市风云》荐书——唯勇气最可贵
In 2022, 95% of the three most common misunderstandings in software testing were recruited. Are you that 5%?
Groovy, "try with resources" construction alternative
通达OA v12流程中心
缺少库while loading shared libraries: libisl.so.15: cannot open shared object file: No such file
Stm32f407 ------- IIC communication protocol
[fluent] fluent debugging (debug debugging window | viewing mobile phone log information | setting normal breakpoints | setting expression breakpoints)
Distributed transaction solution
Exception handling in kotlin process
Bottleneck period must see: how can testers who have worked for 3-5 years avoid detours and break through smoothly