awk:display_lines_that_contain_a_specific_string
Differences
This shows you the differences between two versions of the page.
awk:display_lines_that_contain_a_specific_string [2020/09/23 16:09] – created 192.168.1.1 | awk:display_lines_that_contain_a_specific_string [2021/01/06 17:11] (current) – peter | ||
---|---|---|---|
Line 4: | Line 4: | ||
awk '/ | awk '/ | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Example ====== | ||
+ | |||
+ | Assuming a file, **test.txt**, | ||
+ | |||
+ | < | ||
+ | 10 | ||
+ | 11 | ||
+ | 12 | ||
+ | 13 | ||
+ | 14 | ||
+ | 48 | ||
+ | </ | ||
+ | |||
+ | Running | ||
+ | |||
+ | <code bash> | ||
+ | awk '/ | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | 10 | ||
+ | 11 | ||
+ | 12 | ||
+ | </ | ||
+ | |||
awk/display_lines_that_contain_a_specific_string.1600877358.txt.gz · Last modified: 2020/09/23 16:09 by 192.168.1.1