Extract columns from whitespace-delimited text.
Section: sed awk and Structured Text Workflows
Print selected columns with awk
bash
bash
awk '{print $1, $5}' access.logExplanation
Great for quick field extraction and lightweight reporting.
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