[[linux_wiki:awk]]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:awk [2016/05/30 21:09]
billdozor [Print Line After Match]
linux_wiki:awk [2019/05/26 03:50] (current)
Line 58: Line 58:
 awk '/​mystring/​ { getline; print }' awk '/​mystring/​ { getline; print }'
 </​code>​ </​code>​
-  * mystring = regex string to search for +  * mystring =regex string to search for 
-  * getline = set the line $0 to the next line +  * getline =set the line $0 to the next line 
-  * print = print the line+  * print =print the line
  
 ---- ----
  • linux_wiki/awk.txt
  • Last modified: 2019/05/26 03:50
  • (external edit)