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
Next revision
Previous revision
awk:display_line_before_the_matching_string [2021/01/06 16:33] peterawk:display_line_before_the_matching_string [2021/01/06 17:08] (current) peter
Line 5: Line 5:
 </code> </code>
  
 +<WRAP info>
 +**NOTE:**  This starts at the bottom of the file searching upwards and once it finds the search string it displays everything else above.
 +</WRAP>
  
 ---- ----
Line 32: 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 48: 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.1609950819.txt.gz · Last modified: 2021/01/06 16:33 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki