💾 Archived View for freeshell.de › tldr › awk.gmi captured on 2022-06-11 at 21:26:13. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
A versatile programming language for working on files.
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).