
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.thelinuxwiki.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Delete_newline_through_pipe</id>
		<title>Delete newline through pipe - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Delete_newline_through_pipe"/>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=Delete_newline_through_pipe&amp;action=history"/>
		<updated>2026-04-29T06:13:11Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.5</generator>

	<entry>
		<id>http://www.thelinuxwiki.com/index.php?title=Delete_newline_through_pipe&amp;diff=143&amp;oldid=prev</id>
		<title>Nighthawk: Pushed from Themanclub.</title>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=Delete_newline_through_pipe&amp;diff=143&amp;oldid=prev"/>
				<updated>2013-03-29T04:06:10Z</updated>
		
		<summary type="html">&lt;p&gt;Pushed from Themanclub.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;tr — remove new line characters with tr&lt;br /&gt;
 tr -d '\n' &amp;lt; days.txt&lt;br /&gt;
 cat days.txt | tr -d '\n'&lt;br /&gt;
&lt;br /&gt;
While the new line characters can be replaced with spaces using the tr program as follows.&lt;br /&gt;
&lt;br /&gt;
 tr '\n' ' ' &amp;lt; days.txt&lt;br /&gt;
 cat days.txt | tr '\n' ' '&lt;br /&gt;
&lt;br /&gt;
awk — remove new line characters with awk or gawk&lt;br /&gt;
&lt;br /&gt;
Either of the following commands can be used to delete new lines using awk or gawk.&lt;br /&gt;
&lt;br /&gt;
 awk '{ printf &amp;quot;%s&amp;quot;, $0 }' days.txt&lt;br /&gt;
 cat days.txt | awk '{ printf &amp;quot;%s&amp;quot;, $0 }'&lt;br /&gt;
&lt;br /&gt;
While the new line characters can be replaced with spaces using either of the following commands.&lt;br /&gt;
&lt;br /&gt;
 awk '{ printf &amp;quot;%s &amp;quot;, $0 }' days.txt&lt;br /&gt;
 cat days.txt | awk '{ printf &amp;quot;%s &amp;quot;, $0 }' &lt;br /&gt;
&lt;br /&gt;
[[category:scripting]]&lt;/div&gt;</summary>
		<author><name>Nighthawk</name></author>	</entry>

	</feed>