![Learning AWK Programming](https://wfqqreader-1252317822.image.myqcloud.com/cover/98/36700098/b_36700098.jpg)
上QQ阅读APP看书,第一时间看更新
Pattern-only statements
The syntax of the awk command with a pattern only is as follows:
awk '/ pattern /' inputfilename
In the given example, all lines of the empinfo.txt file are processed, and those that contain the Jane pattern are printed:
$ awk '/Jane/' empinfo.txt
Jane 9837432312 jane@gmail.com hr 1800 5