basic_awk
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| basic_awk [2016/02/25 12:03] – luke7858 | basic_awk [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| sar -q | awk '$4 >= 4' | sar -q | awk '$4 >= 4' | ||
| </ | </ | ||
| + | Awk for multiple words | ||
| <sxh bash> | <sxh bash> | ||
| - | + | awk '/Luke|Joe/' | |
| - | </sxh>< | + | |
| </ | </ | ||
| + | Awk for multiple words case insensitive: | ||
| + | <sxh bash> | ||
| + | awk '/ | ||
| + | </ | ||
| + | awk inversely | ||
| + | <sxh bash> | ||
| + | awk ' | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | <sxh bash> | ||
| + | | awk '$5 ~ / | ||
| + | </ | ||
| + | <sxh bash> | ||
| + | | awk '$5 ~ /[0-9]w/ && $6 ~ /REG/' | ||
| + | </ | ||
| + | |||
basic_awk.1456401830.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
