awk
learn awk
0.1.
what is awk?
1.
Awk Syntax and Basic Commands
1.1.
Awk Command Syntax
1.2.
Awk Program Structure (BEGIN, body, END block)
1.3.
Print Command
1.4.
pattern 匹配
2.
Awk Built-in Variables
2.1.
FS-输入字段分隔符
2.2.
OFS-输出字段分隔符
2.3.
RS-记录分隔符
2.4.
ORS-输出记录分隔符
2.5.
NR-记录数
2.6.
FILENAME-当前文件名
2.7.
FNR-文件“记录数”
3.
Awk Variables and Operators
3.1.
Variables
3.2.
Unary Operators
3.3.
Arithmetic Operators
3.4.
String Operator
3.5.
Assignment Operators
3.6.
Comparison Operators
3.7.
Regular Expression Operators
4.
Awk Conditional Statements and Loops
4.1.
Simple If Statement
4.2.
If Else Statement
4.3.
While Loop
4.4.
Do-While Loop
4.5.
For Loop Statement
4.6.
Break Statement
4.7.
Continue Statement
4.8.
Exit Statement
5.
Awk Associative Arrays
5.1.
Assigning Array Elements
5.2.
Referring to Array Elements
5.3.
Browse the Array using For Loop
5.4.
Delete Array Element
5.5.
Multi Dimensional Array
5.6.
SUBSEP - Subscript Separator
5.7.
Sort Array Values using asort
5.8.
Sort Array Indexes using asorti
6.
Additional Awk Commands
6.1.
Pretty Printing Using printf
7.
Functions
7.1.
Built-in Numeric Functions
7.2.
Random Number Generator
7.3.
Generic String Functions
7.3.1.
index 函数
7.3.2.
Length 函数
7.3.3.
Split 函数
7.3.4.
Substr 函数
7.4.
GAWK/NAWK String Functions
7.4.1.
Sub 函数
7.4.2.
Gsub 函数
7.4.3.
Match 函数 () 和RSTART, RLENGTH变量
7.5.
GAWK String Functions
7.6.
Argument Processing (ARGC, ARGV, ARGIND)
7.7.
OFMT
7.8.
GAWK Built-in Environment Variables
7.9.
Awk Profiler - pgawk
7.10.
Bit Manipulation
7.11.
User Defined Functions
7.12.
Language Independent Output
7.13.
Two Way Communication
7.14.
System Function
7.15.
Timestamp Functions
7.16.
getline Command
Powered by
GitBook
A
A
Serif
Sans
White
Sepia
Night
Share on Twitter
Share on Google
Share on Facebook
Share on Weibo
Share on Instapaper
awk
Generic String Functions
一般字符串函数