Gawk program on linux

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Gawk program on linux相关的知识,希望对你有一定的参考价值。

refers to <Linux Command Line and Shell Scripting Bible>

date:Sep 18 2016

 

Gawk is to run scripts,So called program.It is programming-like environment.

 


first example:

技术分享


$0 represents the entire line of the text.

Each data field is determined in a text line by a field separation character.When gawk reads a line of text,it delineates each data field using the defined field separation character.The default field separation character in gawk is any whitespace character(such as the tab or space characters).

技术分享


 

以上是关于Gawk program on linux的主要内容,如果未能解决你的问题,请参考以下文章

gawk 文本处理入门用法详集

gawk 初识

三剑客之gawk

awk命令用法及编程

文本处理三剑客之AWK

linux的awk命令