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 Both sides next revision
linux_wiki:awk [2016/03/28 22:18]
billdozor [Awk]
linux_wiki:awk [2016/05/30 17:08]
billdozor
Line 47: Line 47:
  
 true true
 +</code>
 +
 +----
 +
 +===== Print Line After Match =====
 +
 +Search for a regex string and print the line AFTER the match.
 +
 +<code bash>
 +awk '/mystring/ { getline; print }'
 </code> </code>
  
  • linux_wiki/awk.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)