
<?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=sed_delete_newline</id>
		<title>sed delete newline - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=sed_delete_newline"/>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=sed_delete_newline&amp;action=history"/>
		<updated>2026-04-29T00:40:22Z</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=sed_delete_newline&amp;diff=1486&amp;oldid=prev</id>
		<title>Nighthawk: Created page with &quot; example of sed failing to remove newline...  $ '''printf &quot;foo\nbar\n&quot; | sed 's/\n//''''  foo  bar  solution is to pass sed the -z or --null-data option to separate lines by N...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=sed_delete_newline&amp;diff=1486&amp;oldid=prev"/>
				<updated>2024-04-02T18:53:35Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; example of sed failing to remove newline...  $ &amp;#039;&amp;#039;&amp;#039;printf &amp;quot;foo\nbar\n&amp;quot; | sed &amp;#039;s/\n//&amp;#039;&amp;#039;&amp;#039;&amp;#039;  foo  bar  solution is to pass sed the -z or --null-data option to separate lines by N...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
example of sed failing to remove newline...&lt;br /&gt;
 $ '''printf &amp;quot;foo\nbar\n&amp;quot; | sed 's/\n//''''&lt;br /&gt;
 foo&lt;br /&gt;
 bar&lt;br /&gt;
&lt;br /&gt;
solution is to pass sed the -z or --null-data option to separate lines by NUL characters&lt;br /&gt;
&lt;br /&gt;
 $ '''printf &amp;quot;foo\nbar\n&amp;quot; | sed -z 's/\n//''''&lt;br /&gt;
 foobar&lt;/div&gt;</summary>
		<author><name>Nighthawk</name></author>	</entry>

	</feed>