当前位置:网站首页>Awk from entry to earth (17) awk multiline writing
Awk from entry to earth (17) awk multiline writing
2022-07-24 17:40:00 【Wonderful binary】
When awk The script of is complex , It leads to a line that cannot be written down or when you want to have a beautiful format , You can use multiline writing .
1、 One sentence and one line , Just go back
[email protected]:~$ ls -l | awk '{ > print 1 > }'
awk Identify to ’ Will automatically end when .
2、 A separate statement , You need a discount , Must use \, Otherwise, it will be recognized as two independent statements .
[email protected]:~$ ls -l | awk '{ print \ > 1 > }'
above print If not ,print and 1 Will be split into two statements .
3、# The following content will be recognized as comments , Lead to \ Don't take effect
gawk 'BEGIN { print "dont panic" # a friendly \ > BEGIN rule >}'
error → gawk:cmd.line:2: BEGIN The rules
error → gawk:cmd.line:2: ^ Grammar mistakes
边栏推荐
- es(1)
- The most powerful programmer on the earth is equipped with a "three piece set". Do you know what it is?
- 2022 Asia International Internet of things exhibition
- Get the data of Tongcheng (elong) Hotel
- Open source Invoicing system, 10 minutes to complete, it is recommended to collect!
- How the computer accesses the Internet (IV) LAN and server response
- NPM install reported -4058 error
- 电脑监控是真的吗?4个实验一探究竟
- 生信常用分析图形绘制02 -- 解锁火山图真谛!
- One article of quantitative framework backtrader: understand indicator indicators
猜你喜欢

Canvas from getting started to persuading friends to give up (graphic version)

2022 Asia International Internet of things exhibition

NC port forwarding

Dry goods | three sub domain name collection tools worth collecting

生信常用分析图形绘制02 -- 解锁火山图真谛!

Two dimensional convolution -- use of torch.nn.conv2d

电脑监控是真的吗?4个实验一探究竟

In the morning, Tencent took out 38K, which let me see the ceiling of the foundation

C语言自定义类型 — 枚举

Review and analysis of noodle dishes
随机推荐
启发式合并(含一般式、树上启发式合并 例题)
portmap 端口转发
Stop littering configuration files everywhere! Try our 7-year-old solution, which is stable
es(1)
nc 端口转发
213. Looting II - Dynamic Planning
快速完成intelij idea的单元测试JUnit4设置
Trends of semiconductor industry
NC port forwarding
Pat class A - check in and check out
Explain Apache Hudi schema evolution in detail
Image information is displayed by browser: data:image/png; Base64, + image content
C # print reports using fastreport.net
An example of using viewthatfits adaptive view in swiftui 4.0
Make good use of these seven tips in code review, and it is easy to establish your opposition alliance
Openlayers: point aggregation effect
Is it safe for qiniu to open an account?
2022 Asia International Internet of things exhibition
hcip第三天
调整图像亮度的滚动条演示实验