<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bash on unit363</title><link>https://unit363.dev/tags/bash/</link><description>Recent content in Bash on unit363</description><generator>Hugo</generator><language>en</language><copyright>unit363</copyright><lastBuildDate>Tue, 27 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://unit363.dev/tags/bash/index.xml" rel="self" type="application/rss+xml"/><item><title>Bash Cheat Sheet</title><link>https://unit363.dev/posts/bash-cheat-sheet/</link><pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate><guid>https://unit363.dev/posts/bash-cheat-sheet/</guid><description>&lt;h3 id="wrong-windows-copy"&gt;Wrong Windows copy&lt;/h3&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;sed -i &amp;#39;s/\r$//&amp;#39; file&#10;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="test-setup"&gt;Test setup&lt;/h2&gt;&#10;&lt;p&gt;Every example here was run on the 8-line &lt;code&gt;access.log&lt;/code&gt; below, and the output shown is the real output. Tested with GNU sed 4.9, GNU grep 3.11 and mawk 1.3.4 on Linux.&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;192.168.1.10 - alice [27/Oct/2026:10:00:01 +0100] &amp;#34;GET /index.html HTTP/1.1&amp;#34; 200 1024&#10;192.168.1.11 - bob [27/Oct/2026:10:00:05 +0100] &amp;#34;POST /login HTTP/1.1&amp;#34; 401 312&#10;10.0.0.5 - - [27/Oct/2026:10:01:10 +0100] &amp;#34;GET /admin HTTP/1.1&amp;#34; 403 210&#10;192.168.1.10 - alice [27/Oct/2026:10:02:00 +0100] &amp;#34;GET /img/a.png HTTP/1.1&amp;#34; 200 5120&#10;10.0.0.5 - - [27/Oct/2026:10:02:30 +0100] &amp;#34;POST /login HTTP/1.1&amp;#34; 401 312&#10;10.0.0.5 - - [27/Oct/2026:10:02:35 +0100] &amp;#34;POST /login HTTP/1.1&amp;#34; 401 312&#10;172.16.4.2 - carol [27/Oct/2026:10:03:00 +0100] &amp;#34;GET /api/v1/items HTTP/1.1&amp;#34; 500 87&#10;192.168.1.11 - bob [27/Oct/2026:10:04:00 +0100] &amp;#34;POST /login HTTP/1.1&amp;#34; 200 640&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Field numbers used below (space-delimited): &lt;code&gt;$1&lt;/code&gt; client IP, &lt;code&gt;$3&lt;/code&gt; user, &lt;code&gt;$9&lt;/code&gt; HTTP status, &lt;code&gt;$NF&lt;/code&gt; response bytes (last field).&lt;/p&gt;</description></item></channel></rss>