<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BASH Cures Cancer &#187; Contributions</title>
	<atom:link href="http://bashcurescancer.com/category/contributions/feed" rel="self" type="application/rss+xml" />
	<link>http://bashcurescancer.com</link>
	<description>Learn the UNIX/Linux command line</description>
	<lastBuildDate>Tue, 25 Oct 2011 18:09:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>prepend to a file with sponge from moreutils</title>
		<link>http://bashcurescancer.com/prepend-to-a-file-with-sponge-from-moreutils.html</link>
		<comments>http://bashcurescancer.com/prepend-to-a-file-with-sponge-from-moreutils.html#comments</comments>
		<pubDate>Thu, 17 Apr 2008 19:37:37 +0000</pubDate>
		<dc:creator>Brock Noland</dc:creator>
				<category><![CDATA[Contributions]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[moreutils]]></category>
		<category><![CDATA[patches]]></category>
		<category><![CDATA[prepend]]></category>

		<guid isPermaLink="false">http://bashcurescancer.com/?p=147</guid>
		<description><![CDATA[A few weeks I wrote about a tool, which helps you easily prepend to a file. I submitted prepend to moreutils and Joey was kind enough to point out this could be done with `sponge&#8217;.  sponge reads standard input and when done, writes it to a file: Probably the most general purpose tool in moreutils [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks I wrote about a tool, which helps you <a href="http://bashcurescancer.com/new-command-prepend.html">easily prepend to a file</a>. I submitted prepend to <a href="http://kitenet.net/~joey/code/moreutils/">moreutils</a> and Joey was kind enough to point out this could be done with `sponge&#8217;.  sponge reads standard input and when done, writes it to a file:</p>
<blockquote><p>Probably the most general purpose tool in <a href="http://kitenet.net/~joey/code/moreutils/">moreutils </a>so far is <code>sponge</code>(1), which lets you do things like this:</p>
<p><code>% sed "s/root/toor/" /etc/passwd | grep -v joey | sponge /etc/passwd</code></p></blockquote>
<p>Two days ago Joey released version 0.29 of <a href="http://kitenet.net/~joey/code/moreutils/">moreutils </a>including a patch by yours truly (with much help from Joey).</p>
<blockquote><p>sponge: Handle large data sizes by using a temp file rather than by  consuming arbitrary amounts of memory. Patch by Brock Noland. <a href="http://kitenet.net/~joey/code/moreutils/news/version_0.29/">version 0.29 changelog</a></p></blockquote>
<p>Also, on a non-command line note, I found a video on Joey&#8217;s site which I thought was pretty cool, <a href="http://kitenet.net/~joey/learnstofly/">Joey Learns to Fly</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bashcurescancer.com/prepend-to-a-file-with-sponge-from-moreutils.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.199 seconds -->

