<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Piping - Revision history</title>
		<link>https://www.slackwiki.com/index.php?title=Piping&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.40.0</generator>
		<lastBuildDate>Wed, 08 Apr 2026 02:56:57 GMT</lastBuildDate>
		<item>
			<title>Erik: Reverted edits by LisaClayborn (Talk) to last version by Erik</title>
			<link>https://www.slackwiki.com/index.php?title=Piping&amp;diff=295&amp;oldid=prev</link>
			<guid isPermaLink="false">https://www.slackwiki.com/index.php?title=Piping&amp;diff=295&amp;oldid=prev</guid>
			<description>&lt;p&gt;Reverted edits by &lt;a href=&quot;/Special:Contributions/LisaClayborn&quot; title=&quot;Special:Contributions/LisaClayborn&quot;&gt;LisaClayborn&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:LisaClayborn&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:LisaClayborn (page does not exist)&quot;&gt;Talk&lt;/a&gt;) to last version by &lt;a href=&quot;/User:Erik&quot; title=&quot;User:Erik&quot;&gt;Erik&lt;/a&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 16:16, 9 February 2010&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;You can mix [[Common Commands|commands]] to do certain things &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;like [http://www.superiorthesis.com superior thesis]&lt;/del&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;You can mix [[Common Commands|commands]] to do certain things.  &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;   dmesg | grep hd&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;   dmesg | grep hd&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 09 Feb 2010 16:16:29 GMT</pubDate>
			<dc:creator>Erik</dc:creator>
			<comments>https://www.slackwiki.com/Talk:Piping</comments>
		</item>
		<item>
			<title>Merge-delete at 16:07, 9 February 2010</title>
			<link>https://www.slackwiki.com/index.php?title=Piping&amp;diff=294&amp;oldid=prev</link>
			<guid isPermaLink="false">https://www.slackwiki.com/index.php?title=Piping&amp;diff=294&amp;oldid=prev</guid>
			<description>&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 16:07, 9 February 2010&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;You can mix [[Common Commands|commands]] to do certain things.  &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;You can mix [[Common Commands|commands]] to do certain things &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;like [http://www.superiorthesis.com superior thesis]&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;   dmesg | grep hd&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;   dmesg | grep hd&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 09 Feb 2010 16:07:06 GMT</pubDate>
			<dc:creator>Merge-delete</dc:creator>
			<comments>https://www.slackwiki.com/Talk:Piping</comments>
		</item>
		<item>
			<title>Erik: Copy from old</title>
			<link>https://www.slackwiki.com/index.php?title=Piping&amp;diff=157&amp;oldid=prev</link>
			<guid isPermaLink="false">https://www.slackwiki.com/index.php?title=Piping&amp;diff=157&amp;oldid=prev</guid>
			<description>&lt;p&gt;Copy from old&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;You can mix [[Common Commands|commands]] to do certain things. &lt;br /&gt;
&lt;br /&gt;
  dmesg | grep hd&lt;br /&gt;
&lt;br /&gt;
That will search dmesg and try to find the string &amp;quot;hd&amp;quot;. Now piping is extremely useful. Another example of a pipe:&lt;br /&gt;
&lt;br /&gt;
  dmesg | less&lt;br /&gt;
&lt;br /&gt;
Now this command you can see the dmesg fully and is easier to read. &lt;br /&gt;
&lt;br /&gt;
You can also make longer 'pipelines' by using a pipe of several commands.  For instance, to browse the last fifty lines of &amp;lt;code&amp;gt;dmesg&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
  dmseg | tail -50 | less&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Redirection:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will save the dmesg information in your home directory in the file log.txt&lt;br /&gt;
&lt;br /&gt;
  dmesg &amp;gt; ~/log.txt&lt;br /&gt;
&lt;br /&gt;
You can also redirect only the [[standard output|stdout]] by using '1&amp;gt;' or only the [[error messages|stderr]] by using '2&amp;gt;'.&lt;br /&gt;
&lt;br /&gt;
For instance, if you want to run a command that gives a lot of junk as output, and you just want to see any errors, you can redirect the output to the null device (&amp;lt;code&amp;gt;/dev/null&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
  mplayer /path/to/movie.avi 1&amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
You can also use the &amp;gt; and &amp;gt;&amp;gt; to cat stdin into a new or existing file:&lt;br /&gt;
&lt;br /&gt;
  bash-3.1$ cat &amp;gt; newFile&lt;br /&gt;
  This is a new file            &lt;br /&gt;
  you can type text here and it&lt;br /&gt;
  get's redirected to the file newFile&lt;br /&gt;
  ctrl-c exits&lt;br /&gt;
&lt;br /&gt;
* Warning &lt;br /&gt;
* cat &amp;gt; fileThatAlreadExists WILL OVERWRITE THE FILE! be careful :-)&lt;br /&gt;
&lt;br /&gt;
You can use cat to check the text you just added:&lt;br /&gt;
&lt;br /&gt;
  bash-3.1$ cat newFile &lt;br /&gt;
  This is a new file &lt;br /&gt;
  you can type text here and it&lt;br /&gt;
  get's redirected to the file newFile&lt;br /&gt;
  ctrl-c exits&lt;br /&gt;
  &lt;br /&gt;
Now that a file is created you can add to it with the &amp;gt;&amp;gt; operator&lt;br /&gt;
 &lt;br /&gt;
  bash-3.1$cat &amp;gt;&amp;gt; newFile&lt;br /&gt;
  This is a new line to add to newFile&lt;br /&gt;
&lt;br /&gt;
And if you use cat again to read the file &lt;br /&gt;
&lt;br /&gt;
  bash-3.1$cat newFile&lt;br /&gt;
  This is a new file &lt;br /&gt;
  you can type text here and it&lt;br /&gt;
  get's redirected to the file newFile&lt;br /&gt;
  ctrl-c exits&lt;br /&gt;
  This is a new line to add to newFile&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</description>
			<pubDate>Sat, 06 Jun 2009 21:24:00 GMT</pubDate>
			<dc:creator>Erik</dc:creator>
			<comments>https://www.slackwiki.com/Talk:Piping</comments>
		</item>
</channel></rss>