Command-line tool
awk
brew/awk
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Text processing scripting language
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
scoop install gawk scoop install gow
macOS
brew install awk
Linux
brew install awk
Print the fifth column (a.k.a. field) in a space-separated file
awk '{print $5}' path/to/file
Print the second column of the lines containing "string1" in a space-separated file
awk '/string1/ {print $2}' path/to/file
Print the last column of each line in a file, using a comma (instead of space) as a field separator
awk -F ',' '{print $NF}' path/to/file
Related command-line tools
- texteditorpro
Powerful text editor with syntax highlighting for multiple languages and scripts. Formerly known as EditBone - apache-opennlp
Machine learning toolkit for processing natural language text - bc
Arbitrary precision numeric processing language - Racket
Modern programming language in the Lisp/Scheme family - d2
Modern diagram scripting language that turns text to diagrams diagram script text-to-diagram modern scripting language… - execline
Interpreter-less scripting language - zx
Tool for writing better scripts bash bin binary call child child_process exec execute invoke pipe process script - vint
Vim script Language Lint
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents