Introduction to awk | Linux Today

Introduction to awk

Written By
Web Webster
Web Webster
Nov 9, 2010

“Awk is a pattern-scanning and text processing utility that
captures information from text files creating reports in the
process, modify files from one format to another, create databases
and perform mathematical operations on data. The term “awk” comes
from the names of the authors, Aho, Weinberger and Kernighan. Nawk
is the newer version of awk and Gawk is the Gnu version. Often awk
is a symbolic link to gawk as you can see on this CentOS
machine.

“awk –version

GNU Awk 3.1.5
Copyright (C) 1989, 1991-2005 Free Software Foundation.

ls -l /bin/awk
lrwxrwxrwx 1 root root 4 May 22 07:43 /bin/awk -> gawk

“When awk is used data can be sent from standard input (stdin is
in put from the keyboard), files, or from output of another
process. When you engage awk it scans a file or the input, line by
line from the first line to the last searching for the lines that
match the criteria you have entered.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.