<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cheat Sheet on ilikeorangutans</title><link>https://kuelzer.ca/tags/cheat-sheet/</link><description>Recent content in Cheat Sheet on ilikeorangutans</description><generator>Hugo</generator><language>en</language><copyright>© 2026 Jakob Külzer</copyright><lastBuildDate>Sun, 12 Apr 2026 14:27:24 -0400</lastBuildDate><atom:link href="https://kuelzer.ca/tags/cheat-sheet/index.xml" rel="self" type="application/rss+xml"/><item><title>awk Cheat Sheet</title><link>https://kuelzer.ca/posts/2019/03/26/awk-cheat-sheet/</link><pubDate>Tue, 26 Mar 2019 11:36:48 -0400</pubDate><guid>https://kuelzer.ca/posts/2019/03/26/awk-cheat-sheet/</guid><description>&lt;p&gt;I needed to crunch some data quickly and decided awk was the right tool to do so. But every time I use awk, I have to go read the manual, so I decided it&amp;rsquo;s time for a cheat sheet.&lt;/p&gt;
&lt;h3 id="structure-of-an-awk-script"&gt;Structure of an awk script&lt;/h3&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;# Comments begin with a pound sign
BEGIN {
 # Instructions run before the main loop
 FS = &amp;#34;;&amp;#34; # Set a Field Separator
}

# Each line of input is applied against all the following
# regular expressions and runs the instructions in the
# block:

/^$/ { print &amp;#34;An empty line&amp;#34; }

END {
 # Instructions run after the main loop
}
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Invoke awk with a script like so:&lt;/p&gt;</description></item></channel></rss>