<?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>Sharing some thoughts &#187; scripts</title>
	<atom:link href="http://www.fabiopedrazzoli.com/tag/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fabiopedrazzoli.com</link>
	<description>Sharing unconditionally is the true source of love.</description>
	<lastBuildDate>Sun, 11 Jul 2010 12:29:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Quick data pipeline for encryption and decryption</title>
		<link>http://www.fabiopedrazzoli.com/2009/04/quick-data-encryption-and-decryption/</link>
		<comments>http://www.fabiopedrazzoli.com/2009/04/quick-data-encryption-and-decryption/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 13:58:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ICT]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[decrypt]]></category>
		<category><![CDATA[encrypt]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.fabiopedrazzoli.com/?p=165</guid>
		<description><![CDATA[In the need for a quick pipeline to encrypt and decrypt data, gpg can be quite handy, for example it can be used in this way to encrypt  some backup before transferring it to a third part hosted  storage: cat backupfile.tgz &#124; gpg -c --cipher-algo=BLOWFISH &#62; backupfile.tgz.gpg (you&#8217;ll be asked for the Passphrase to use [...]]]></description>
			<content:encoded><![CDATA[<p>In the need for a quick pipeline to encrypt and decrypt data, gpg can be quite handy, for example it can be used in this way to encrypt  some backup before transferring it to a third part hosted  storage:</p>
<blockquote><p><strong><code>cat backupfile.tgz | gpg -c --cipher-algo=BLOWFISH &gt; backupfile.tgz.gpg</code></strong></p></blockquote>
<p>(you&#8217;ll be asked for the Passphrase to use for encryption)<br />
and for decryption:</p>
<blockquote><p><strong><code>cat backupfile.tgz.gpg |gpg -d --cipher-algo=BLOWFISH &gt; backupfile.tgz</code></strong></p></blockquote>
<p>(you&#8217;ll be obviously asked for the Passphrase again, don&#8217;t forget it and save it in a safe place!)</p>
<p>To use it inside a script (batch process) the useful <code>--passphrase</code> switch<br />
can be employed:</p>
<blockquote><p><strong><code>cat backupfile.tgz | gpg -c –cipher-algo=BLOWFISH --passphrase abcdefghi1234567890 > backupfile.tgz.gpg</code></strong></p></blockquote>
<p> in this case, do not forget to set 700 the file for avoiding unwanted reading&#8230;</p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;t=Quick%20data%20pipeline%20for%20encryption%20and%20decryption" title="Facebook"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Quick%20data%20pipeline%20for%20encryption%20and%20decryption%20-%20http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F" title="Twitter"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;t=Quick%20data%20pipeline%20for%20encryption%20and%20decryption&amp;s=In%20the%20need%20for%20a%20quick%20pipeline%20to%20encrypt%20and%20decrypt%20data%2C%20gpg%20can%20be%20quite%20handy%2C%20for%20example%20it%20can%20be%20used%20in%20this%20way%20to%20encrypt%C2%A0%20some%20backup%20before%20transferring%20it%20to%20a%20third%20part%20hosted%C2%A0%20storage%3A%0D%0A%0D%0A%0D%0A%0D%0Acat%20backupfile.tgz%20%7C%20gpg%20-c%20--cipher" title="Tumblr"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;title=Quick%20data%20pipeline%20for%20encryption%20and%20decryption&amp;notes=In%20the%20need%20for%20a%20quick%20pipeline%20to%20encrypt%20and%20decrypt%20data%2C%20gpg%20can%20be%20quite%20handy%2C%20for%20example%20it%20can%20be%20used%20in%20this%20way%20to%20encrypt%C2%A0%20some%20backup%20before%20transferring%20it%20to%20a%20third%20part%20hosted%C2%A0%20storage%3A%0D%0A%0D%0A%0D%0A%0D%0Acat%20backupfile.tgz%20%7C%20gpg%20-c%20--cipher" title="del.icio.us"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;partner=sociable" title="PDF"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.fabiopedrazzoli.com/feed/" title="RSS"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Quick%20data%20pipeline%20for%20encryption%20and%20decryption&amp;body=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F" title="email"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;title=Quick%20data%20pipeline%20for%20encryption%20and%20decryption&amp;source=Sharing+some+thoughts+Sharing+unconditionally+is+the+true+source+of+love.&amp;summary=In%20the%20need%20for%20a%20quick%20pipeline%20to%20encrypt%20and%20decrypt%20data%2C%20gpg%20can%20be%20quite%20handy%2C%20for%20example%20it%20can%20be%20used%20in%20this%20way%20to%20encrypt%C2%A0%20some%20backup%20before%20transferring%20it%20to%20a%20third%20part%20hosted%C2%A0%20storage%3A%0D%0A%0D%0A%0D%0A%0D%0Acat%20backupfile.tgz%20%7C%20gpg%20-c%20--cipher" title="LinkedIn"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;t=Quick%20data%20pipeline%20for%20encryption%20and%20decryption" title="HackerNews"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;title=Quick%20data%20pipeline%20for%20encryption%20and%20decryption&amp;annotation=In%20the%20need%20for%20a%20quick%20pipeline%20to%20encrypt%20and%20decrypt%20data%2C%20gpg%20can%20be%20quite%20handy%2C%20for%20example%20it%20can%20be%20used%20in%20this%20way%20to%20encrypt%C2%A0%20some%20backup%20before%20transferring%20it%20to%20a%20third%20part%20hosted%C2%A0%20storage%3A%0D%0A%0D%0A%0D%0A%0D%0Acat%20backupfile.tgz%20%7C%20gpg%20-c%20--cipher" title="Google Bookmarks"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;title=Quick%20data%20pipeline%20for%20encryption%20and%20decryption&amp;bodytext=In%20the%20need%20for%20a%20quick%20pipeline%20to%20encrypt%20and%20decrypt%20data%2C%20gpg%20can%20be%20quite%20handy%2C%20for%20example%20it%20can%20be%20used%20in%20this%20way%20to%20encrypt%C2%A0%20some%20backup%20before%20transferring%20it%20to%20a%20third%20part%20hosted%C2%A0%20storage%3A%0D%0A%0D%0A%0D%0A%0D%0Acat%20backupfile.tgz%20%7C%20gpg%20-c%20--cipher" title="Digg"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;t=Quick%20data%20pipeline%20for%20encryption%20and%20decryption" title="MySpace"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F" title="Technorati"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;title=Quick%20data%20pipeline%20for%20encryption%20and%20decryption" title="Reddit"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;title=Quick%20data%20pipeline%20for%20encryption%20and%20decryption" title="Blogosphere News"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F" title="Identi.ca"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=Quick%20data%20pipeline%20for%20encryption%20and%20decryption&amp;url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F" title="Netvibes"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;title=Quick%20data%20pipeline%20for%20encryption%20and%20decryption&amp;body=In%20the%20need%20for%20a%20quick%20pipeline%20to%20encrypt%20and%20decrypt%20data%2C%20gpg%20can%20be%20quite%20handy%2C%20for%20example%20it%20can%20be%20used%20in%20this%20way%20to%20encrypt%C2%A0%20some%20backup%20before%20transferring%20it%20to%20a%20third%20part%20hosted%C2%A0%20storage%3A%0D%0A%0D%0A%0D%0A%0D%0Acat%20backupfile.tgz%20%7C%20gpg%20-c%20--cipher" title="Ping.fm"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.simpy.com/simpy/LinkAdd.do?href=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;title=Quick%20data%20pipeline%20for%20encryption%20and%20decryption" title="Simpy"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/simpy.png" title="Simpy" alt="Simpy" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-data-encryption-and-decryption%2F&amp;title=Quick%20data%20pipeline%20for%20encryption%20and%20decryption" title="StumbleUpon"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.fabiopedrazzoli.com/2009/04/quick-data-encryption-and-decryption/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Clear the whole Postfix mail queue</title>
		<link>http://www.fabiopedrazzoli.com/2009/04/clear-the-whole-postfix-mail-queue/</link>
		<comments>http://www.fabiopedrazzoli.com/2009/04/clear-the-whole-postfix-mail-queue/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 18:21:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ICT]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.fabiopedrazzoli.com/?p=143</guid>
		<description><![CDATA[To clear the whole Postfix mail queue you can use this command: ~# for i in `mailq&#124;grep '@' &#124;awk {'print $1'}&#124;grep -v '@'`; do postsuper -d $i ; done Thomas Sewell from coolsewell.com contributed with this helpful notes: you could also just do: postsuper -d ALL to clear all mail queues or even postsuper -d [...]]]></description>
			<content:encoded><![CDATA[<p>To clear the whole Postfix mail queue you can use this command:</p>
<blockquote><p><code>~# for i in `mailq|grep '@' |awk {'print $1'}|grep -v '@'`; do postsuper -d $i ; done</code></p></blockquote>
<p>Thomas Sewell from <a href="http://coolsewell.com" target="_blank">coolsewell.com</a> contributed with this helpful notes:</p>
<p>you could also just do:</p>
<blockquote><p><code>postsuper -d ALL</code></p></blockquote>
<p>to clear all mail queues or even</p>
<blockquote><p><code>postsuper -d ALL deferred</code></p></blockquote>
<p>to just get rid of deferred mail from the queue.</p>
<p>Thanks Thomas! :)</p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;t=Clear%20the%20whole%20Postfix%20mail%20queue" title="Facebook"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Clear%20the%20whole%20Postfix%20mail%20queue%20-%20http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F" title="Twitter"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;t=Clear%20the%20whole%20Postfix%20mail%20queue&amp;s=To%20clear%20the%20whole%20Postfix%20mail%20queue%20you%20can%20use%20this%20command%3A%0D%0A%7E%23%20for%20i%20in%20%60mailq%7Cgrep%20%27%40%27%20%7Cawk%20%7B%27print%20%241%27%7D%7Cgrep%20-v%20%27%40%27%60%3B%20do%20postsuper%20-d%20%24i%20%3B%20done%0D%0AThomas%20Sewell%20from%20coolsewell.com%20contributed%20with%20this%20helpful%20notes%3A%0D%0A%0D%0Ayou%20could%20also%20just%20do%3A%0D" title="Tumblr"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;title=Clear%20the%20whole%20Postfix%20mail%20queue&amp;notes=To%20clear%20the%20whole%20Postfix%20mail%20queue%20you%20can%20use%20this%20command%3A%0D%0A%7E%23%20for%20i%20in%20%60mailq%7Cgrep%20%27%40%27%20%7Cawk%20%7B%27print%20%241%27%7D%7Cgrep%20-v%20%27%40%27%60%3B%20do%20postsuper%20-d%20%24i%20%3B%20done%0D%0AThomas%20Sewell%20from%20coolsewell.com%20contributed%20with%20this%20helpful%20notes%3A%0D%0A%0D%0Ayou%20could%20also%20just%20do%3A%0D" title="del.icio.us"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;partner=sociable" title="PDF"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.fabiopedrazzoli.com/feed/" title="RSS"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Clear%20the%20whole%20Postfix%20mail%20queue&amp;body=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F" title="email"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;title=Clear%20the%20whole%20Postfix%20mail%20queue&amp;source=Sharing+some+thoughts+Sharing+unconditionally+is+the+true+source+of+love.&amp;summary=To%20clear%20the%20whole%20Postfix%20mail%20queue%20you%20can%20use%20this%20command%3A%0D%0A%7E%23%20for%20i%20in%20%60mailq%7Cgrep%20%27%40%27%20%7Cawk%20%7B%27print%20%241%27%7D%7Cgrep%20-v%20%27%40%27%60%3B%20do%20postsuper%20-d%20%24i%20%3B%20done%0D%0AThomas%20Sewell%20from%20coolsewell.com%20contributed%20with%20this%20helpful%20notes%3A%0D%0A%0D%0Ayou%20could%20also%20just%20do%3A%0D" title="LinkedIn"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;t=Clear%20the%20whole%20Postfix%20mail%20queue" title="HackerNews"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;title=Clear%20the%20whole%20Postfix%20mail%20queue&amp;annotation=To%20clear%20the%20whole%20Postfix%20mail%20queue%20you%20can%20use%20this%20command%3A%0D%0A%7E%23%20for%20i%20in%20%60mailq%7Cgrep%20%27%40%27%20%7Cawk%20%7B%27print%20%241%27%7D%7Cgrep%20-v%20%27%40%27%60%3B%20do%20postsuper%20-d%20%24i%20%3B%20done%0D%0AThomas%20Sewell%20from%20coolsewell.com%20contributed%20with%20this%20helpful%20notes%3A%0D%0A%0D%0Ayou%20could%20also%20just%20do%3A%0D" title="Google Bookmarks"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;title=Clear%20the%20whole%20Postfix%20mail%20queue&amp;bodytext=To%20clear%20the%20whole%20Postfix%20mail%20queue%20you%20can%20use%20this%20command%3A%0D%0A%7E%23%20for%20i%20in%20%60mailq%7Cgrep%20%27%40%27%20%7Cawk%20%7B%27print%20%241%27%7D%7Cgrep%20-v%20%27%40%27%60%3B%20do%20postsuper%20-d%20%24i%20%3B%20done%0D%0AThomas%20Sewell%20from%20coolsewell.com%20contributed%20with%20this%20helpful%20notes%3A%0D%0A%0D%0Ayou%20could%20also%20just%20do%3A%0D" title="Digg"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;t=Clear%20the%20whole%20Postfix%20mail%20queue" title="MySpace"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F" title="Technorati"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;title=Clear%20the%20whole%20Postfix%20mail%20queue" title="Reddit"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;title=Clear%20the%20whole%20Postfix%20mail%20queue" title="Blogosphere News"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F" title="Identi.ca"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=Clear%20the%20whole%20Postfix%20mail%20queue&amp;url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F" title="Netvibes"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;title=Clear%20the%20whole%20Postfix%20mail%20queue&amp;body=To%20clear%20the%20whole%20Postfix%20mail%20queue%20you%20can%20use%20this%20command%3A%0D%0A%7E%23%20for%20i%20in%20%60mailq%7Cgrep%20%27%40%27%20%7Cawk%20%7B%27print%20%241%27%7D%7Cgrep%20-v%20%27%40%27%60%3B%20do%20postsuper%20-d%20%24i%20%3B%20done%0D%0AThomas%20Sewell%20from%20coolsewell.com%20contributed%20with%20this%20helpful%20notes%3A%0D%0A%0D%0Ayou%20could%20also%20just%20do%3A%0D" title="Ping.fm"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.simpy.com/simpy/LinkAdd.do?href=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;title=Clear%20the%20whole%20Postfix%20mail%20queue" title="Simpy"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/simpy.png" title="Simpy" alt="Simpy" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fclear-the-whole-postfix-mail-queue%2F&amp;title=Clear%20the%20whole%20Postfix%20mail%20queue" title="StumbleUpon"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.fabiopedrazzoli.com/2009/04/clear-the-whole-postfix-mail-queue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick System Backup via Netcat</title>
		<link>http://www.fabiopedrazzoli.com/2009/04/quick-system-backup-via-netcat/</link>
		<comments>http://www.fabiopedrazzoli.com/2009/04/quick-system-backup-via-netcat/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 18:13:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ICT]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.fabiopedrazzoli.com/?p=139</guid>
		<description><![CDATA[Sometimes a backup is needed but the server storage is not enough, in this case you must backup your data on the fly via the net, without the facility of storing locally and then transfer the data. There are many methods to backup your data on the fly, using rsync via ssh is one for [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes a backup is needed but the server storage is not enough, in this case you must backup your data on the fly via the net, without the facility of storing locally and then transfer the data.</p>
<p>There are many methods to backup your data on the fly, using rsync via ssh is one for example, but this post is about using netcat for a quick solution.</p>
<p>Listening side, where the backup data will be stored, or destination:</p>
<blockquote><p><code>~# mkdir /whatever_the_name_of_your_backup_dir<br />
~# cd !$<br />
~# netcat -l -p 12345 | pv | tar xjf -</code></p></blockquote>
<p>Sending side, where the original data are, or source:</p>
<blockquote><p><code>~# cd /<br />
~# tar cjf - --ignore-failed-read bin boot cdrom dev/ etc/ home/ initrd* lib/ root/ sbin/ usr/ var/ vmlinuz*  | pv | netcat -q 2 &lt;YOUR_DESTINATION_IP&gt; 12345</code></p></blockquote>
<p>Don&#8217;t forget to create: /bin  /media  /mnt  /opt  /proc  /selinux /srv /sys /tmp<br />
and chmod 1777 /tmp<br />
(This FHS is for a Debian Etch, please take care of different directories in your setup)</p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;t=Quick%20System%20Backup%20via%20Netcat" title="Facebook"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Quick%20System%20Backup%20via%20Netcat%20-%20http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F" title="Twitter"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;t=Quick%20System%20Backup%20via%20Netcat&amp;s=Sometimes%20a%20backup%20is%20needed%20but%20the%20server%20storage%20is%20not%20enough%2C%20in%20this%20case%20you%20must%20backup%20your%20data%20on%20the%20fly%20via%20the%20net%2C%20without%20the%20facility%20of%20storing%20locally%20and%20then%20transfer%20the%20data.%0D%0A%0D%0AThere%20are%20many%20methods%20to%20backup%20your%20data%20on%20the" title="Tumblr"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;title=Quick%20System%20Backup%20via%20Netcat&amp;notes=Sometimes%20a%20backup%20is%20needed%20but%20the%20server%20storage%20is%20not%20enough%2C%20in%20this%20case%20you%20must%20backup%20your%20data%20on%20the%20fly%20via%20the%20net%2C%20without%20the%20facility%20of%20storing%20locally%20and%20then%20transfer%20the%20data.%0D%0A%0D%0AThere%20are%20many%20methods%20to%20backup%20your%20data%20on%20the" title="del.icio.us"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;partner=sociable" title="PDF"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.fabiopedrazzoli.com/feed/" title="RSS"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Quick%20System%20Backup%20via%20Netcat&amp;body=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F" title="email"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;title=Quick%20System%20Backup%20via%20Netcat&amp;source=Sharing+some+thoughts+Sharing+unconditionally+is+the+true+source+of+love.&amp;summary=Sometimes%20a%20backup%20is%20needed%20but%20the%20server%20storage%20is%20not%20enough%2C%20in%20this%20case%20you%20must%20backup%20your%20data%20on%20the%20fly%20via%20the%20net%2C%20without%20the%20facility%20of%20storing%20locally%20and%20then%20transfer%20the%20data.%0D%0A%0D%0AThere%20are%20many%20methods%20to%20backup%20your%20data%20on%20the" title="LinkedIn"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;t=Quick%20System%20Backup%20via%20Netcat" title="HackerNews"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;title=Quick%20System%20Backup%20via%20Netcat&amp;annotation=Sometimes%20a%20backup%20is%20needed%20but%20the%20server%20storage%20is%20not%20enough%2C%20in%20this%20case%20you%20must%20backup%20your%20data%20on%20the%20fly%20via%20the%20net%2C%20without%20the%20facility%20of%20storing%20locally%20and%20then%20transfer%20the%20data.%0D%0A%0D%0AThere%20are%20many%20methods%20to%20backup%20your%20data%20on%20the" title="Google Bookmarks"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;title=Quick%20System%20Backup%20via%20Netcat&amp;bodytext=Sometimes%20a%20backup%20is%20needed%20but%20the%20server%20storage%20is%20not%20enough%2C%20in%20this%20case%20you%20must%20backup%20your%20data%20on%20the%20fly%20via%20the%20net%2C%20without%20the%20facility%20of%20storing%20locally%20and%20then%20transfer%20the%20data.%0D%0A%0D%0AThere%20are%20many%20methods%20to%20backup%20your%20data%20on%20the" title="Digg"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;t=Quick%20System%20Backup%20via%20Netcat" title="MySpace"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F" title="Technorati"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;title=Quick%20System%20Backup%20via%20Netcat" title="Reddit"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;title=Quick%20System%20Backup%20via%20Netcat" title="Blogosphere News"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F" title="Identi.ca"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=Quick%20System%20Backup%20via%20Netcat&amp;url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F" title="Netvibes"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;title=Quick%20System%20Backup%20via%20Netcat&amp;body=Sometimes%20a%20backup%20is%20needed%20but%20the%20server%20storage%20is%20not%20enough%2C%20in%20this%20case%20you%20must%20backup%20your%20data%20on%20the%20fly%20via%20the%20net%2C%20without%20the%20facility%20of%20storing%20locally%20and%20then%20transfer%20the%20data.%0D%0A%0D%0AThere%20are%20many%20methods%20to%20backup%20your%20data%20on%20the" title="Ping.fm"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.simpy.com/simpy/LinkAdd.do?href=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;title=Quick%20System%20Backup%20via%20Netcat" title="Simpy"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/simpy.png" title="Simpy" alt="Simpy" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2009%2F04%2Fquick-system-backup-via-netcat%2F&amp;title=Quick%20System%20Backup%20via%20Netcat" title="StumbleUpon"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.fabiopedrazzoli.com/2009/04/quick-system-backup-via-netcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple bash calculator</title>
		<link>http://www.fabiopedrazzoli.com/2008/08/simple-bash-calculator/</link>
		<comments>http://www.fabiopedrazzoli.com/2008/08/simple-bash-calculator/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 18:44:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ICT]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.fabiopedrazzoli.com/?p=154</guid>
		<description><![CDATA[Put the following little snippet in your .bashrc/.bash_profile and you&#8217;ll have a handy little calculator: ? () { echo "$*" &#124; bc -l; } Use like this: bash$ ? 2*2 4 Thanks textsnippets.com Share and Enjoy:]]></description>
			<content:encoded><![CDATA[<p>Put the following little snippet in your .bashrc/.bash_profile and you&#8217;ll have a handy little calculator:</p>
<blockquote><p><code>? () { echo "$*" | bc -l; }</code></p></blockquote>
<p>Use like this:</p>
<blockquote><p>bash$ ? 2*2<br />
4<strong><br />
</strong></p></blockquote>
<p>Thanks<a href="http://textsnippets.com" target="_blank"> textsnippets.com</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;t=Simple%20bash%20calculator" title="Facebook"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Simple%20bash%20calculator%20-%20http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F" title="Twitter"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;t=Simple%20bash%20calculator&amp;s=Put%20the%20following%20little%20snippet%20in%20your%20.bashrc%2F.bash_profile%20and%20you%27ll%20have%20a%20handy%20little%20calculator%3A%0D%0A%3F%20%28%29%20%7B%20echo%20%22%24%2A%22%20%7C%20bc%20-l%3B%20%7D%0D%0AUse%20like%20this%3A%0D%0Abash%24%20%3F%202%2A2%0D%0A4%0D%0A%0D%0AThanks%20textsnippets.com" title="Tumblr"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;title=Simple%20bash%20calculator&amp;notes=Put%20the%20following%20little%20snippet%20in%20your%20.bashrc%2F.bash_profile%20and%20you%27ll%20have%20a%20handy%20little%20calculator%3A%0D%0A%3F%20%28%29%20%7B%20echo%20%22%24%2A%22%20%7C%20bc%20-l%3B%20%7D%0D%0AUse%20like%20this%3A%0D%0Abash%24%20%3F%202%2A2%0D%0A4%0D%0A%0D%0AThanks%20textsnippets.com" title="del.icio.us"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;partner=sociable" title="PDF"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.fabiopedrazzoli.com/feed/" title="RSS"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Simple%20bash%20calculator&amp;body=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F" title="email"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;title=Simple%20bash%20calculator&amp;source=Sharing+some+thoughts+Sharing+unconditionally+is+the+true+source+of+love.&amp;summary=Put%20the%20following%20little%20snippet%20in%20your%20.bashrc%2F.bash_profile%20and%20you%27ll%20have%20a%20handy%20little%20calculator%3A%0D%0A%3F%20%28%29%20%7B%20echo%20%22%24%2A%22%20%7C%20bc%20-l%3B%20%7D%0D%0AUse%20like%20this%3A%0D%0Abash%24%20%3F%202%2A2%0D%0A4%0D%0A%0D%0AThanks%20textsnippets.com" title="LinkedIn"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;t=Simple%20bash%20calculator" title="HackerNews"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;title=Simple%20bash%20calculator&amp;annotation=Put%20the%20following%20little%20snippet%20in%20your%20.bashrc%2F.bash_profile%20and%20you%27ll%20have%20a%20handy%20little%20calculator%3A%0D%0A%3F%20%28%29%20%7B%20echo%20%22%24%2A%22%20%7C%20bc%20-l%3B%20%7D%0D%0AUse%20like%20this%3A%0D%0Abash%24%20%3F%202%2A2%0D%0A4%0D%0A%0D%0AThanks%20textsnippets.com" title="Google Bookmarks"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;title=Simple%20bash%20calculator&amp;bodytext=Put%20the%20following%20little%20snippet%20in%20your%20.bashrc%2F.bash_profile%20and%20you%27ll%20have%20a%20handy%20little%20calculator%3A%0D%0A%3F%20%28%29%20%7B%20echo%20%22%24%2A%22%20%7C%20bc%20-l%3B%20%7D%0D%0AUse%20like%20this%3A%0D%0Abash%24%20%3F%202%2A2%0D%0A4%0D%0A%0D%0AThanks%20textsnippets.com" title="Digg"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;t=Simple%20bash%20calculator" title="MySpace"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F" title="Technorati"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;title=Simple%20bash%20calculator" title="Reddit"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;title=Simple%20bash%20calculator" title="Blogosphere News"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F" title="Identi.ca"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=Simple%20bash%20calculator&amp;url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F" title="Netvibes"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;title=Simple%20bash%20calculator&amp;body=Put%20the%20following%20little%20snippet%20in%20your%20.bashrc%2F.bash_profile%20and%20you%27ll%20have%20a%20handy%20little%20calculator%3A%0D%0A%3F%20%28%29%20%7B%20echo%20%22%24%2A%22%20%7C%20bc%20-l%3B%20%7D%0D%0AUse%20like%20this%3A%0D%0Abash%24%20%3F%202%2A2%0D%0A4%0D%0A%0D%0AThanks%20textsnippets.com" title="Ping.fm"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.simpy.com/simpy/LinkAdd.do?href=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;title=Simple%20bash%20calculator" title="Simpy"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/simpy.png" title="Simpy" alt="Simpy" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.fabiopedrazzoli.com%2F2008%2F08%2Fsimple-bash-calculator%2F&amp;title=Simple%20bash%20calculator" title="StumbleUpon"><img src="http://www.fabiopedrazzoli.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.fabiopedrazzoli.com/2008/08/simple-bash-calculator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
