<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.6bit.ch/index.php?action=history&amp;feed=atom&amp;title=Aho_Weinberger_Kernighan</id>
	<title>Aho Weinberger Kernighan - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.6bit.ch/index.php?action=history&amp;feed=atom&amp;title=Aho_Weinberger_Kernighan"/>
	<link rel="alternate" type="text/html" href="http://wiki.6bit.ch/index.php?title=Aho_Weinberger_Kernighan&amp;action=history"/>
	<updated>2026-05-10T13:09:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.6bit.ch/index.php?title=Aho_Weinberger_Kernighan&amp;diff=142&amp;oldid=prev</id>
		<title>Xbl: /* Use */</title>
		<link rel="alternate" type="text/html" href="http://wiki.6bit.ch/index.php?title=Aho_Weinberger_Kernighan&amp;diff=142&amp;oldid=prev"/>
		<updated>2023-08-21T11:43:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Use&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:43, 21 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;who | awk '{print $NF}'&amp;lt;/code&amp;gt; print the last field (NF=Number of Fields) of every line from the who command&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;who | awk '{print $NF}'&amp;lt;/code&amp;gt; print the last field (NF=Number of Fields) of every line from the who command&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;date | awk 'OFS=&amp;quot;-&amp;quot; {print$2,$3,$6}'&amp;lt;/code&amp;gt; print the date fields 2, 3 and 6 using the OFS (Output Field Seperator) '-'&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;date | awk 'OFS=&amp;quot;-&amp;quot; {print $2,$3,$6}'&amp;lt;/code&amp;gt; print the date fields 2, 3 and 6 using the OFS (Output Field Seperator) '-'&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;date | awk 'OFS=&amp;quot;/&amp;quot; {print$2,$3,$6}'&amp;lt;/code&amp;gt; print the date fields 2, 3 and 6 using the OFS (Output Field Seperator) '/'&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;date | awk 'OFS=&amp;quot;/&amp;quot; {print $2,$3,$6}'&amp;lt;/code&amp;gt; print the date fields 2, 3 and 6 using the OFS (Output Field Seperator) '/'&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt; awk 'BEGIN {print &amp;quot;yoloooo&amp;quot;} {print $0} END {print &amp;quot;swaaag&amp;quot;}' test.sh&amp;lt;/code&amp;gt; 'BEGIN' prints &amp;quot;yoloooo&amp;quot; before any text processing, 'END' prints &amp;quot;swaaag&amp;quot; after text processing&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt; awk 'BEGIN {print &amp;quot;yoloooo&amp;quot;} {print $0} END {print &amp;quot;swaaag&amp;quot;}' test.sh&amp;lt;/code&amp;gt; 'BEGIN' prints &amp;quot;yoloooo&amp;quot; before any text processing, 'END' prints &amp;quot;swaaag&amp;quot; after text processing&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Xbl</name></author>
	</entry>
	<entry>
		<id>http://wiki.6bit.ch/index.php?title=Aho_Weinberger_Kernighan&amp;diff=141&amp;oldid=prev</id>
		<title>Xbl at 11:42, 21 August 2023</title>
		<link rel="alternate" type="text/html" href="http://wiki.6bit.ch/index.php?title=Aho_Weinberger_Kernighan&amp;diff=141&amp;oldid=prev"/>
		<updated>2023-08-21T11:42:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:42, 21 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;who | awk '{print $NF}'&amp;lt;/code&amp;gt; print the last field (NF=Number of Fields) of every line from the who command&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;who | awk '{print $NF}'&amp;lt;/code&amp;gt; print the last field (NF=Number of Fields) of every line from the who command&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;date | awk 'OFS=&amp;quot;-&amp;quot; {print$2,$3,$6}'&amp;lt;/code&amp;gt; print the date fields 2, 3 and 6 using the OFS (Output Field Seperator) '-'&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;date | awk 'OFS=&amp;quot;-&amp;quot; {print$2,$3,$6}'&amp;lt;/code&amp;gt; print the date fields 2, 3 and 6 using the OFS (Output Field Seperator) '-'&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;date | awk 'OFS=&amp;quot;/&amp;quot; {print$2,$3,$6}'&amp;lt;/code&amp;gt; print the date fields 2, 3 and 6 using the OFS (Output Field Seperator) '/'&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;date | awk 'OFS=&amp;quot;/&amp;quot; {print$2,$3,$6}'&amp;lt;/code&amp;gt; print the date fields 2, 3 and 6 using the OFS (Output Field Seperator) '/'&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt; awk 'BEGIN {print &amp;quot;yoloooo&amp;quot;} {print $0} END {print &amp;quot;swaaag&amp;quot;}' test.sh&amp;lt;/code&amp;gt; 'BEGIN' prints &amp;quot;yoloooo&amp;quot; before any text processing, 'END' prints &amp;quot;swaaag&amp;quot; after text processing&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt; awk 'BEGIN {print &amp;quot;yoloooo&amp;quot;} {print $0} END {print &amp;quot;swaaag&amp;quot;}' test.sh&amp;lt;/code&amp;gt; 'BEGIN' prints &amp;quot;yoloooo&amp;quot; before any text processing, 'END' prints &amp;quot;swaaag&amp;quot; after text processing&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;awk -F: '$3 &amp;gt;= 1000 {print $1,$6}' /etc/passwd&amp;lt;/code&amp;gt; print field 1 and 6 from /etc/passwd where field 3 is greater than 1000&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;awk -F: '$3 &amp;gt;= 1000 {print $1,$6}' /etc/passwd&amp;lt;/code&amp;gt; print field 1 and 6 from /etc/passwd where field 3 is greater than 1000&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Useful Flags ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Useful Flags ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;-F:&amp;lt;/code&amp;gt; define field delimiter as ':'&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;-F:&amp;lt;/code&amp;gt; define field delimiter as ':'&amp;lt;/br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Xbl</name></author>
	</entry>
	<entry>
		<id>http://wiki.6bit.ch/index.php?title=Aho_Weinberger_Kernighan&amp;diff=140&amp;oldid=prev</id>
		<title>Xbl: Created page with &quot;= awk =  is a full scripting language, as well as a complete text manipulation toolkit for the command line.&lt;/br&gt;  == Use == &lt;code&gt;who | awk '{print $1}'&lt;/code&gt; print the first field of every line from the who command&lt;/br&gt; &lt;code&gt;who | awk '{print $1,$4}'&lt;/code&gt; print the first and fourth field of every line from the who command&lt;/br&gt; &lt;code&gt;who | awk '{print $NF}'&lt;/code&gt; print the last field (NF=Number of Fields) of every line from the who command&lt;/br&gt; &lt;/br&gt; &lt;code&gt;date | a...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.6bit.ch/index.php?title=Aho_Weinberger_Kernighan&amp;diff=140&amp;oldid=prev"/>
		<updated>2023-08-21T11:26:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= awk =  is a full scripting language, as well as a complete text manipulation toolkit for the command line.&amp;lt;/br&amp;gt;  == Use == &amp;lt;code&amp;gt;who | awk &amp;#039;{print $1}&amp;#039;&amp;lt;/code&amp;gt; print the first field of every line from the who command&amp;lt;/br&amp;gt; &amp;lt;code&amp;gt;who | awk &amp;#039;{print $1,$4}&amp;#039;&amp;lt;/code&amp;gt; print the first and fourth field of every line from the who command&amp;lt;/br&amp;gt; &amp;lt;code&amp;gt;who | awk &amp;#039;{print $NF}&amp;#039;&amp;lt;/code&amp;gt; print the last field (NF=Number of Fields) of every line from the who command&amp;lt;/br&amp;gt; &amp;lt;/br&amp;gt; &amp;lt;code&amp;gt;date | a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= awk =&lt;br /&gt;
&lt;br /&gt;
is a full scripting language, as well as a complete text manipulation toolkit for the command line.&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use ==&lt;br /&gt;
&amp;lt;code&amp;gt;who | awk '{print $1}'&amp;lt;/code&amp;gt; print the first field of every line from the who command&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;who | awk '{print $1,$4}'&amp;lt;/code&amp;gt; print the first and fourth field of every line from the who command&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;who | awk '{print $NF}'&amp;lt;/code&amp;gt; print the last field (NF=Number of Fields) of every line from the who command&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;date | awk 'OFS=&amp;quot;-&amp;quot; {print$2,$3,$6}'&amp;lt;/code&amp;gt; print the date fields 2, 3 and 6 using the OFS (Output Field Seperator) '-'&lt;br /&gt;
&amp;lt;code&amp;gt;date | awk 'OFS=&amp;quot;/&amp;quot; {print$2,$3,$6}'&amp;lt;/code&amp;gt; print the date fields 2, 3 and 6 using the OFS (Output Field Seperator) '/'&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt; awk 'BEGIN {print &amp;quot;yoloooo&amp;quot;} {print $0} END {print &amp;quot;swaaag&amp;quot;}' test.sh&amp;lt;/code&amp;gt; 'BEGIN' prints &amp;quot;yoloooo&amp;quot; before any text processing, 'END' prints &amp;quot;swaaag&amp;quot; after text processing&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;awk -F: '$3 &amp;gt;= 1000 {print $1,$6}' /etc/passwd&amp;lt;/code&amp;gt; print field 1 and 6 from /etc/passwd where field 3 is greater than 1000&lt;br /&gt;
&lt;br /&gt;
== Useful Flags ==&lt;br /&gt;
&amp;lt;code&amp;gt;-F:&amp;lt;/code&amp;gt; define field delimiter as ':'&amp;lt;/br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Xbl</name></author>
	</entry>
</feed>