当前位置:网站首页>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 | 输出的记录分隔符,默认为换行符 |
边栏推荐
- Huakaiyun (Zhiyin) | virtual host: what is a virtual host
- Ni visa fails after LabVIEW installs the third-party visa software
- Return the only different value (de duplication)
- iptables 4层转发
- DDL basic operation
- Internal connection query and external connection
- Visualisation de l'ensemble de données au format yolov5 (fichier labelme json)
- Wechat applet development tool post net:: err_ PROXY_ CONNECTION_ Failed agent problem
- MySQL learning 03
- LabVIEW安装第三方VISA软件后NI VISA失效
猜你喜欢

The testing process that software testers should know

Analysis, use and extension of open source API gateway apisex

Comment communiquer avec Huawei Cloud IOT via le Protocole mqtt

技术大佬准备就绪,话题C位由你决定

【Camera专题】OTP数据如何保存在自定义节点中

SPI机制
![[Flutter] dart: class;abstract class;factory;类、抽象类、工厂构造函数](/img/06/ab333a4752de27eae2dd937cf579e2.png)
[Flutter] dart: class;abstract class;factory;类、抽象类、工厂构造函数

The technology boss is ready, and the topic of position C is up to you

使用Go语言实现try{}catch{}finally

Coroutinecontext in kotlin
随机推荐
可視化yolov5格式數據集(labelme json文件)
Flink CDC mongoDB 使用及Flink sql解析monggo中复杂嵌套JSON数据实现
Exception handling in kotlin process
How do it students find short-term internships? Which is better, short-term internship or long-term internship?
2022 spring "golden three silver four" job hopping prerequisites: Software Test interview questions (with answers)
Face recognition 6-face_ recognition_ Py based on OpenCV, face detection and real-time tracking using Haar cascade and Dlib Library
詳細些介紹如何通過MQTT協議和華為雲物聯網進行通信
Processing of tree structure data
[shutter] hero animation (hero realizes radial animation | hero component createrecttween setting)
《上市风云》荐书——唯勇气最可贵
Ni visa fails after LabVIEW installs the third-party visa software
单词单词单词
[camera topic] how to save OTP data in user-defined nodes
How to find summer technical internship in junior year? Are you looking for a large company or a small company for technical internship?
What are the key points often asked in the redis interview
Leetcode (540) -- a single element in an ordered array
Machine learning notes (constantly updating...)
[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)
Bottleneck period must see: how can testers who have worked for 3-5 years avoid detours and break through smoothly
Where is the future of test engineers? Confused to see