<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How Unix works on Unix Handbook</title><link>https://www.unixhandbook.com/how-unix-works/</link><description>Recent content in How Unix works on Unix Handbook</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://www.unixhandbook.com/how-unix-works/index.xml" rel="self" type="application/rss+xml"/><item><title>How the shell runs a pipeline</title><link>https://www.unixhandbook.com/how-unix-works/how-the-shell-runs-a-pipeline/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.unixhandbook.com/how-unix-works/how-the-shell-runs-a-pipeline/</guid><description>&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Sorting three observations produces three lines. Adding &lt;code&gt;uniq -c&lt;/code&gt; produces only two. Follow the data through both commands, then hold the write end of a pipe open for two seconds to see when the last count becomes available. Use an ordinary account, a Bourne-style shell, and the three-line &lt;code&gt;observations.txt&lt;/code&gt; from &lt;a href="https://www.unixhandbook.com/learn/streams-and-filters/"&gt;Streams, redirection, and filters&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="reproduce-the-report"&gt;Reproduce the report&lt;a class="anchor" href="#reproduce-the-report" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Change to the practice directory.&lt;/p&gt;&#10;&lt;div class="command-block"&gt;&#10; &lt;div class="command-tools"&gt;&lt;span&gt;Shell input&lt;/span&gt;&lt;button type="button" class="copy-command" hidden&gt;Copy&lt;/button&gt;&lt;span class="copy-status" role="status"&gt;&lt;/span&gt;&lt;/div&gt;&#10; &lt;pre&gt;&lt;code&gt;cd &amp;#34;$HOME/unix-practice&amp;#34;&lt;/code&gt;&lt;/pre&gt;&#10;&lt;/div&gt;&lt;p&gt;If the directory is missing, complete the &lt;a href="https://www.unixhandbook.com/learn/files-and-paths/"&gt;practice directory exercise&lt;/a&gt; first. Inspect the input.&lt;/p&gt;</description></item></channel></rss>