awk
In most cases sed
, it is used as a supplement awk
to sed
the format of the processed content and output. awk
To process "standardized" files, the method of use is more like script files, sed
and the relatively irregular files are processed into relatively standardized files.
awk
There are three parts:
Routine before data input BEGIN{}
Main input loop{}
All file read completion routineEND{}
This article is a study note for Day 8 in August, and the content comes from Geek Time "100 Lectures on Linux Practical Skills" .