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
linux_wiki:awk [2016/05/30 17:09]
billdozor [Print Line After Match]
linux_wiki:awk [2016/05/30 17:10]
billdozor [Print Line After Match]
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/25 23:50
  • (external edit)