Understanding awk in Linux learning

awkIn most cases sed, it is used as a supplement awkto sedthe format of the processed content and output. awkTo process "standardized" files, the method of use is more like script files, sedand the relatively irregular files are processed into relatively standardized files.
awkThere 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" .

Guess you like

Origin blog.csdn.net/qq_42108074/article/details/132178237