💾 Archived View for freeshell.de › tldr › awk.gmi captured on 2023-11-04 at 12:10:22. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

awk

A versatile programming language for working on files.

More information.

awk '{print $5}' {filename}
awk '/{foo}/ {print $2}' {filename}
awk -F ',' '{print $NF}' {filename}
awk '{s+=$1} END {print s}' {filename}
awk 'NR%3==1' {filename}
awk '{if ($1 == "foo") print "Exact match foo"; else if ($1 ~ "bar") print "Partial match bar"; else print "Baz"}' {filename}
awk '($10 == value)'
awk '($10 >= min_value && $10 <= max_value)'
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY