当前位置:网站首页>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 |
边栏推荐
- Storage basic operation
- es6 filter() 数组过滤方法总结
- Y54. Chapter III kubernetes from introduction to mastery -- ingress (27)
- 通达OA v12流程中心
- 可視化yolov5格式數據集(labelme json文件)
- Where is the future of test engineers? Confused to see
- 5.文件操作
- easyPOI
- 线程安全的单例模式
- Missing library while loading shared libraries: libisl so. 15: cannot open shared object file: No such file
猜你喜欢
技术大佬准备就绪,话题C位由你决定
Ni visa fails after LabVIEW installs the third-party visa software
y54.第三章 Kubernetes从入门到精通 -- ingress(二七)
Button button adaptive size of wechat applet
stm32F407-------IIC通讯协议
stm32F407-------DMA
Detailed analysis of micro service component sentinel (hystrix)
What are the key points often asked in the redis interview
Y54. Chapter III kubernetes from introduction to mastery -- ingress (27)
微服务组件Sentinel (Hystrix)详细分析
随机推荐
CFdiv2-Fixed Point Guessing-(区间答案二分)
DDL basic operation
微信小程序开发工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理问题
In 2022, 95% of the three most common misunderstandings in software testing were recruited. Are you that 5%?
Storage basic operation
ByteDance data Lake integration practice based on Hudi
PyTorch 卷积网络正则化 DropBlock
Trial setup and use of idea GoLand development tool
微信小程序開發工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理問題
Use go language to realize try{}catch{}finally
SPI机制
Machine learning notes (constantly updating...)
【Camera专题】Camera dtsi 完全解析
RestCloud ETL 跨库数据聚合运算
Summary of ES6 filter() array filtering methods
Job object of collaboration in kotlin
Socket programming
Internal connection query and external connection
leetcode961. Find the elements repeated N times in the array with length 2n
What are the key points often asked in the redis interview