Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

awk

Text processing tool

Syntax

awk [OPTION]... program [file]...

Common Options

-FField separator
-vDefine variable
-fProgram file

Common Examples

awk '{print $1}' file.txt

Print first column

awk -F':' '{print $1}' /etc/passwd

Use colon separator

awk '/pattern/ {print}' file.txt

Match pattern

Related Commands

Related Tools

More Code & Dev Tools