User Tools

Site Tools


awk:display_line_before_the_matching_string

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
awk:display_line_before_the_matching_string [2021/01/06 16:35] peterawk:display_line_before_the_matching_string [2021/01/06 17:08] (current) peter
Line 35: Line 35:
  
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**  As there is no line about row 10, which contains the search string **Peter**, an empty line is added to the result.
 +</WRAP>
 +
  
 ---- ----
Line 51: Line 56:
 11   Virginia  Genevieve  Roux       45 11   Virginia  Genevieve  Roux       45
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**  As there is no line about row 10, which contains the search string **Roux**, an empty line is added to the result.
 +
 +Row 11 has the the search string **Roux**, results in the line above, row 10, being added to the result;  even though row 10 also contains the search string.
 +
 +Row 12 has the the search string **Roux**, results in the line above, row 11, being added to the result;  even though row 10 also contains the search string.
 +
 +No further rows contain the search string so nothing else is added to the output.
 +</WRAP>
 +
  
 ---- ----
awk/display_line_before_the_matching_string.1609950954.txt.gz · Last modified: 2021/01/06 16:35 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki