< All Cheat Sheets

Cheat Sheet: awk

The awk command is a versatile text-processing tool used in Unix-based systems for manipulating and analyzing text files, particularly for extracting and processing fields within lines based on patterns.

awk cheat sheet

Playground

Use BashSenpai to generate a command from a text prompt:

awk 'tolower($0) ~ /error/ { print }' /var/log/syslog

Download

Enter your email address and we'll happily send you a download link. The cheat sheet is available in PDF and PNG formats, light and dark.

Download
Download