awk:display_line_after_the_matching_string
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
awk:display_line_after_the_matching_string [2021/01/06 16:30] – [AWK - Display line after the matching string] peter | awk:display_line_after_the_matching_string [2021/01/06 17:04] (current) – [AWK - Display line after the matching string] peter | ||
---|---|---|---|
Line 5: | Line 5: | ||
</ | </ | ||
- | <WRAP info> | ||
- | **NOTE: | ||
- | </ | ||
---- | ---- | ||
Line 35: | Line 32: | ||
11 | 11 | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
---- | ---- | ||
Line 50: | Line 52: | ||
13 | 13 | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | It then proceeds with row 12 which also contains the search string **Roux**, so it includes row 13 in the results. | ||
+ | |||
+ | No further rows contain the search string so nothing else is added to the result. | ||
+ | </ | ||
+ | |||
---- | ---- | ||
Line 66: | Line 77: | ||
48 | 48 | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | It then proceeds from row 12. It does not find the search string **4**, so moves to row 13. | ||
+ | |||
+ | In row 13 it finds the search string **4**, so it includes the next row 14 in the results; even though row 14 also contains the same search string. | ||
+ | |||
+ | It then proceeds from row 15. | ||
+ | |||
+ | The last row contains the search string; and as there is no other row below that can be added to the result; the last row itself is added. | ||
+ | </ | ||
+ | |||
+ | |||
---- | ---- |
awk/display_line_after_the_matching_string.1609950659.txt.gz · Last modified: 2021/01/06 16:30 by peter