Linux Command Cheat Sheet/Filter rows with awk

Print rows that satisfy a condition.

Section: sed awk and Structured Text Workflows

Filter rows with awk

bash
bash
awk '$5 > 100 {print $0}' usage.txt
Explanation

Useful when conditions go beyond what `grep` handles cleanly.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing sed awk and Structured Text Workflows
Print file contents
Concatenate and print files to standard output.
OpenIn sheetbash1 tag match
Search text with grep
Print lines matching a pattern.
OpenIn sheetbash1 tag match
Show first lines
Display the first lines of a file.
OpenIn sheetbash1 tag match
Show non-matching lines
Exclude lines that match a pattern.
OpenIn sheetbash1 tag match
Show last lines
Display the end of a file.
OpenIn sheetbash1 tag match
Count lines words and bytes
Count content in files or streams.
OpenIn sheetbash1 tag match