Want to learn and master AWK?

Join Exercism’s AWK Track for access to 79 exercises with automatic analysis of your code and personal mentoring, all 100% free.

Explore exercises

About AWK

BEGIN {print "Hello World!"}

79 coding exercises for AWK on Exercism. From Two Fer to Bob.


Get better at programming through fun, rewarding coding exercises that test your understanding of concepts with Exercism.

See all AWK exercises on Exercism

Key Features of AWK


AWK

General purpose

AWK is a venerable, powerful, elegant, and simple tool that everyone should know.

Easy

Extracting a column from your CSV is as simple as "awk -F, '{print $1}' file"

Powerful

Replace complex grep|sed|tr|cut pipelines with a short AWK script.

Do more with less

Simple and flexible data structures, user-defined functions; AWK can do more than you think.

One-liners

With just a few dozen characters, you can achieve impressive text transformations.

Widely used

Besides /bin/sh, AWK is the only other scripting language in the standard Unix environment.

Get mentored the AWK way

Every language has its own way of doing things. AWK is no different. Our mentors will help you learn to think like a AWK developer and how to write idiomatic code in AWK. Once you've solved an exercise, submit it to our volunteer team, and they'll give you hints, ideas, and feedback on how to make it feel more like what you'd normally see in AWK - they'll help you discover the things you don't know that you don't know.

Learn more about mentoring

Community-sourced AWK exercises

The AWK track on Exercism has 79 exercises to help you write better code. Discover new exercises as you progress and get engrossed in learning new concepts and improving the way you currently write.

See all AWK exercises
AWK

Get started with the AWK track

The best part, it’s 100% free for everyone.