<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Amit Agarwal</title>
	
	<link>http://blog.amit-agarwal.co.in</link>
	<description>Linux and Photography Blog</description>
	<lastBuildDate>Wed, 17 Mar 2010 15:20:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image><link>http://shop.amit-agarwal.co.in</link><url>http://blog.amit-agarwal.co.in/favicon.ico</url><title>Amit Agarwal</title></image>
<cloud domain="blog.amit-agarwal.co.in" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/amitag" /><feedburner:info uri="amitag" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><feedburner:emailServiceId>amitag</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/amitag" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsalloy.com/?rss=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://www.newsalloy.com/subrss3.gif">Subscribe with NewsAlloy</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2Famitag" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><feedburner:browserFriendly>Feed of Amit Agarwal.. Thanks for subscribing.</feedburner:browserFriendly><item>
		<title>Google’s RE2 regular expression library</title>
		<link>http://feedproxy.google.com/~r/amitag/~3/RtQi7CCf_S4/</link>
		<comments>http://blog.amit-agarwal.co.in/2010/03/17/googles-re2-regular-expression-library/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 02:27:56 +0000</pubDate>
		<dc:creator>Amit Agarwal</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Automata theory]]></category>
		<category><![CDATA[Bigtable]]></category>
		<category><![CDATA[FAQs  Help  and Tutorials]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[regular expression]]></category>
		<category><![CDATA[Sawzall]]></category>

		<guid isPermaLink="false">http://blog.amit-agarwal.co.in/?p=1576</guid>
		<description><![CDATA[

Hot:





Image via CrunchBase




?
Google has announced the release of its RE2 library under a BSDish license. &#8220;At Google, we use regular expressions as part of the interface to many external and internal systems, including Code Search, Sawzall, and Bigtable. Those systems process large amounts of data; exponential run time would be a serious problem. On a <a href="http://blog.amit-agarwal.co.in/2010/03/17/googles-re2-regular-expression-library/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/VBt3vWBiWg7aTKEhBY0sjFL66jI/0/da"><img src="http://feedads.g.doubleclick.net/~a/VBt3vWBiWg7aTKEhBY0sjFL66jI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/VBt3vWBiWg7aTKEhBY0sjFL66jI/1/da"><img src="http://feedads.g.doubleclick.net/~a/VBt3vWBiWg7aTKEhBY0sjFL66jI/1/di" border="0" ismap="true"></img></a></p><img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=c4599566e98300cde7006b93a4800096&amp;default=http://blog.amit-agarwal.co.in/me.jpg' alt='No Gravatar' width=30 height=3 title="Googles RE2 regular expression library" />
<table>
<tr cellpadding=0><td>Hot:</td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Googles RE2 regular expression library" alt="sun Googles RE2 regular expression library" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Googles RE2 regular expression library" alt="sun dark Googles RE2 regular expression library" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Googles RE2 regular expression library" alt="sun dark Googles RE2 regular expression library" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Googles RE2 regular expression library" alt="sun dark Googles RE2 regular expression library" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Googles RE2 regular expression library" alt="sun dark Googles RE2 regular expression library" /></td></tr>
</table>
<p><div class="zemanta-img">
<div>
<dl class="wp-caption alignright">
<dt class="wp-caption-dt"><a target="_blank" href="http://www.crunchbase.com/company/google" ><img title="Image representing Google as depicted in Crunc..." src="http://www.crunchbase.com/assets/images/resized/0002/9578/29578v7-max-250x250.jpg" alt="Image representing Google as depicted in Crunc..." /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution">Image via <a target="_blank" href="http://www.crunchbase.com" >CrunchBase</a></dd>
</dl>
</div>
<p><span id="more-1576"></span></p>
</div>
<p>?</p>
<p><a target="_blank" href="http://google.com" class="zem_slink freebase/en/google" title="Google" rel="homepage" >Google</a> has announced the release of its RE2 library under a BSDish license. &#8220;At Google, we use <a target="_blank" href="http://en.wikipedia.org/wiki/Regular_expression" class="zem_slink freebase/en/regular_expression" title="Regular expression" rel="wikipedia" >regular expressions</a> as part of the interface to many external and internal systems, including Code Search, <a target="_blank" href="http://en.wikipedia.org/wiki/Sawzall_%28programming_language%29" class="zem_slink freebase/en/sawzall" title="Sawzall (programming language)" rel="wikipedia" >Sawzall</a>, and <a target="_blank" href="http://labs.google.com/papers/bigtable.html" class="zem_slink" title="Bigtable" rel="homepage" >Bigtable</a>. Those systems process large amounts of <a target="_blank" href="http://en.wikipedia.org/wiki/Data" class="zem_slink freebase/en/data" title="Data" rel="wikipedia" >data</a>; exponential <a target="_blank" href="http://en.wikipedia.org/wiki/Run_time_%28computing%29" class="zem_slink freebase/en/runtime" title="Run time (computing)" rel="wikipedia" >run time</a> would be a serious problem. On a more practical note, these are <a target="_blank" href="http://en.wikipedia.org/wiki/Thread_%28computer_science%29" class="zem_slink freebase/en/thread" title="Thread (computer science)" rel="wikipedia" >multithreaded</a> <a target="_blank" href="http://en.wikipedia.org/wiki/C%2B%2B" class="zem_slink freebase/en/cplusplus" title="C++" rel="wikipedia" >C++</a> programs with fixed-size stacks: the unbounded stack usage in typical regular expression implementations leads to stack overflows and server crashes. To solve both problems, we&#8217;ve built a new regular expression engine, called RE2, which is based on <a target="_blank" href="http://en.wikipedia.org/wiki/Automata_theory" class="zem_slink freebase/en/automata_theory" title="Automata theory" rel="wikipedia" >automata theory</a> and guarantees that searches complete in <a target="_blank" href="http://en.wikipedia.org/wiki/Linear_time" class="zem_slink freebase/en/linear_time" title="Linear time" rel="wikipedia" >linear time</a> with respect to the size of the input and in a fixed amount of stack space.&#8221; More information can be found on the <a href="http://code.google.com/p/re2/"  target="_blank">RE2 project page</a>.</p>
<h6 class="zemanta-related-title">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://glinden.blogspot.com/2010/03/gfs-and-its-evolution.html" >GFS and its evolution</a> (glinden.blogspot.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://research.swtch.com/2010/03/regular-expression-article-3.html" >Regular Expression Article #3</a> (research.swtch.com)</li>
</ul>
<div class="zemanta-pixie"><a target="_blank" href="http://reblog.zemanta.com/zemified/456fa268-f416-4aec-ae05-4d1a9c9c2712/" class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" ><img class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_b.png?x-id=456fa268-f416-4aec-ae05-4d1a9c9c2712" alt="Reblog this post [with Zemanta]" title="Googles RE2 regular expression library" /></a><span class="zem-script more-related more-info pretty-attribution paragraph-reblog"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<hr /><h2>Related posts:</h2><ul><li><a href="http://blog.amit-agarwal.co.in/2010/01/03/recursive-regular-expressions/"  rel="bookmark" title="Permanent Link: Recursive Regular Expressions">Recursive Regular Expressions</a></li><li><a href="http://blog.amit-agarwal.co.in/2010/01/01/regular-expression-sed-and-grep-tuturials-and-tricks/"  rel="bookmark" title="Permanent Link: regular expression, sed and grep tuturials and tricks.">regular expression, sed and grep tuturials and tricks.</a></li><li><a href="http://blog.amit-agarwal.co.in/2010/01/05/display-the-output-of-a-command-from-the-first-line-until-the-first-instance-of-a-regular-expression/"  rel="bookmark" title="Permanent Link: Display the output of a command from the first line until the first instance of a regular expression.">Display the output of a command from the first line until the first instance of a regular expression.</a></li></ul><hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br />  (74.125.158.82) )</small><p><a href="http://blog.amit-agarwal.co.in/?ibsa=share&id=1576"  id="share-link-">Share</a></p>
<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a href="http://technorati.com/tag/Automata+theory" class='technorati-link'  rel='tag,nofollow' target='_blank'>Automata theory</a>, <a href="http://technorati.com/tag/Bigtable" class='technorati-link'  rel='tag,nofollow' target='_blank'>Bigtable</a>, <a href="http://technorati.com/tag/FAQs++Help++and+Tutorials" class='technorati-link'  rel='tag,nofollow' target='_blank'>FAQs  Help  and Tutorials</a>, <a href="http://technorati.com/tag/google" class='technorati-link'  rel='tag,nofollow' target='_blank'>google</a>, <a href="http://technorati.com/tag/Languages" class='technorati-link'  rel='tag,nofollow' target='_blank'>Languages</a>, <a href="http://technorati.com/tag/programming" class='technorati-link'  rel='tag,nofollow' target='_blank'>programming</a>, <a href="http://technorati.com/tag/regular+expression" class='technorati-link'  rel='tag,nofollow' target='_blank'>regular expression</a>, <a href="http://technorati.com/tag/Sawzall" class='technorati-link'  rel='tag,nofollow' target='_blank'>Sawzall</a></p>

<!-- end wp-tags-to-technorati -->
 <a STYLE="border:none;text-decoration:none;outline:none;" href="http://www.blogtrafficexchange.com"><img border="0" alt="Blog Traffic Exchange" src="http://blog.amit-agarwal.co.in/wp-content/plugins/related-websites/24x24.png"></a> <a href="http://www.blogtrafficexchange.com/related-websites"><strong>Related Websites</strong></a> <ul>  <li style="clear: both;"> <a onClick="window.location='http://bte.tc/dq3'; return false;" href="http://www.blogtrafficexchange.com/unique-seo-content/">Unique SEO Content</a> <small>You are probably already aware of how important link building...</small> </li> <li style="clear: both;"> <a onClick="window.location='http://bte.tc/QqP'; return false;" href="http://alliantdatatel.com/2009/12/04/how-to-pick-out-the-best-it-support.html">How to Pick Out the Best IT Support</a> <small>Doing business these days requires the use of IT Support....</small> </li> </ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/amitag?a=RtQi7CCf_S4:ve3b2mwNRCo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/amitag?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=RtQi7CCf_S4:ve3b2mwNRCo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/amitag?i=RtQi7CCf_S4:ve3b2mwNRCo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=RtQi7CCf_S4:ve3b2mwNRCo:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/amitag?d=YwkR-u9nhCs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=RtQi7CCf_S4:ve3b2mwNRCo:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/amitag?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=RtQi7CCf_S4:ve3b2mwNRCo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/amitag?i=RtQi7CCf_S4:ve3b2mwNRCo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=RtQi7CCf_S4:ve3b2mwNRCo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/amitag?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=RtQi7CCf_S4:ve3b2mwNRCo:KwTdNBX3Jqk"><img src="http://feeds.feedburner.com/~ff/amitag?i=RtQi7CCf_S4:ve3b2mwNRCo:KwTdNBX3Jqk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=RtQi7CCf_S4:ve3b2mwNRCo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/amitag?i=RtQi7CCf_S4:ve3b2mwNRCo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=RtQi7CCf_S4:ve3b2mwNRCo:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/amitag?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/amitag/~4/RtQi7CCf_S4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.amit-agarwal.co.in/2010/03/17/googles-re2-regular-expression-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.amit-agarwal.co.in/2010/03/17/googles-re2-regular-expression-library/</feedburner:origLink></item>
		<item>
		<title>prepend to a file with sponge from moreutils</title>
		<link>http://feedproxy.google.com/~r/amitag/~3/NnJDqSCk3Bs/</link>
		<comments>http://blog.amit-agarwal.co.in/2010/03/16/prepend-to-a-file-with-sponge-from-moreutils/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 02:25:42 +0000</pubDate>
		<dc:creator>Amit Agarwal</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Data Formats]]></category>
		<category><![CDATA[File descriptor]]></category>
		<category><![CDATA[File Management]]></category>
		<category><![CDATA[File Managers]]></category>
		<category><![CDATA[Shell script]]></category>
		<category><![CDATA[Standard streams]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.amit-agarwal.co.in/2009/09/15/prepend-to-a-file-with-sponge-from-moreutils/</guid>
		<description><![CDATA[

Hot:

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 &#8230;
Related articles by Zemanta

Automating Tasks <a href="http://blog.amit-agarwal.co.in/2010/03/16/prepend-to-a-file-with-sponge-from-moreutils/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/QToA40Vdrp6shedxAlnLUy2L9uc/0/da"><img src="http://feedads.g.doubleclick.net/~a/QToA40Vdrp6shedxAlnLUy2L9uc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/QToA40Vdrp6shedxAlnLUy2L9uc/1/da"><img src="http://feedads.g.doubleclick.net/~a/QToA40Vdrp6shedxAlnLUy2L9uc/1/di" border="0" ismap="true"></img></a></p><img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=c4599566e98300cde7006b93a4800096&amp;default=http://blog.amit-agarwal.co.in/me.jpg' alt='No Gravatar' width=30 height=3 title="prepend to a file with sponge from moreutils" />
<table>
<tr cellpadding=0><td>Hot:</td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="prepend to a file with sponge from moreutils" alt="sun prepend to a file with sponge from moreutils" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="prepend to a file with sponge from moreutils" alt="sun prepend to a file with sponge from moreutils" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="prepend to a file with sponge from moreutils" alt="sun dark prepend to a file with sponge from moreutils" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="prepend to a file with sponge from moreutils" alt="sun dark prepend to a file with sponge from moreutils" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="prepend to a file with sponge from moreutils" alt="sun dark prepend to a file with sponge from moreutils" /></td></tr>
</table>
<p><p><a href="http://bashcurescancer.com/prepend-to-a-file-with-sponge-from-moreutils.html">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:<br />
Probably the most general &#8230;</a><span id="more-1025"></span></p>
<h6 class="zemanta-related-title">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://helpdeskgeek.com/linux-tips/crontab-howto-tutorial-syntax/" >Automating Tasks in Linux Using Crontab</a> (helpdeskgeek.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.slideshare.net/progrium/sxsw-evented-web" >How WebHooks Will Make Us All Programmers</a> (slideshare.net)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://almirkaric.com/2010/01/07/debugging-python-multiprocessing/" >Debugging python (multi)processing</a> (almirkaric.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.slideshare.net/royzimmer/you-can-do-it-start-using-perl-to-handle-your-voyager-needs" >You Can Do It! Start Using Perl to Handle Your Voyager Needs</a> (slideshare.net)</li>
</ul>
<div class="zemanta-pixie"><a target="_blank" href="http://reblog.zemanta.com/zemified/b2b2afad-1679-46ab-831c-90ae0cc4d30f/" class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" ><img class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_b.png?x-id=b2b2afad-1679-46ab-831c-90ae0cc4d30f" alt="Reblog this post [with Zemanta]" title="prepend to a file with sponge from moreutils" /></a><span class="zem-script more-related more-info pretty-attribution paragraph-reblog"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<hr /><h2>Related posts:</h2><ul><li><a href="http://blog.amit-agarwal.co.in/2009/11/23/using-kill-to-see-if-a-process-is-alive/"  rel="bookmark" title="Permanent Link: using kill to see if a process is alive">using kill to see if a process is alive</a></li><li><a href="http://blog.amit-agarwal.co.in/2009/11/19/processing-xml-on-the-command-line/"  rel="bookmark" title="Permanent Link: Processing XML on the Command Line">Processing XML on the Command Line</a></li><li><a href="http://blog.amit-agarwal.co.in/2010/03/09/bash-script-to-view-log-and-config-file-in-different-server-and-paths/"  rel="bookmark" title="Permanent Link: Bash script to view log and config file in different server and paths.">Bash script to view log and config file in different server and paths.</a></li></ul><hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br />  (74.125.158.82) )</small><p><a href="http://blog.amit-agarwal.co.in/?ibsa=share&id=1025"  id="share-link-">Share</a></p><p id="bte_opp"><small>Originally posted 2009-09-15 21:24:53. </small></p>
<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a href="http://technorati.com/tag/Data+Formats" class='technorati-link'  rel='tag,nofollow' target='_blank'>Data Formats</a>, <a href="http://technorati.com/tag/File+descriptor" class='technorati-link'  rel='tag,nofollow' target='_blank'>File descriptor</a>, <a href="http://technorati.com/tag/File+Management" class='technorati-link'  rel='tag,nofollow' target='_blank'>File Management</a>, <a href="http://technorati.com/tag/File+Managers" class='technorati-link'  rel='tag,nofollow' target='_blank'>File Managers</a>, <a href="http://technorati.com/tag/Linux" class='technorati-link'  rel='tag,nofollow' target='_blank'>Linux</a>, <a href="http://technorati.com/tag/Shell+script" class='technorati-link'  rel='tag,nofollow' target='_blank'>Shell script</a>, <a href="http://technorati.com/tag/Standard+streams" class='technorati-link'  rel='tag,nofollow' target='_blank'>Standard streams</a>, <a href="http://technorati.com/tag/Windows" class='technorati-link'  rel='tag,nofollow' target='_blank'>Windows</a></p>

<!-- end wp-tags-to-technorati -->
 <a STYLE="border:none;text-decoration:none;outline:none;" href="http://www.blogtrafficexchange.com"><img border="0" alt="Blog Traffic Exchange" src="http://blog.amit-agarwal.co.in/wp-content/plugins/related-websites/24x24.png"></a> <a href="http://www.blogtrafficexchange.com/related-websites"><strong>Related Websites</strong></a> <ul>  <li style="clear: both;"> <a onClick="window.location='http://bte.tc/apjp'; return false;" href="http://www.richcreditdebtloan.com/save-time-money-and-space-in-over-80-ways/">Save Time, Money and Space in Over 80 Ways</a> <small>If you're looking for handy gadgets, tools and various items...</small> </li> <li style="clear: both;"> <a onClick="window.location='http://bte.tc/AM-'; return false;" href="http://www.maheshkukreja.com/download-any-dll-file-that-is-missing-in-your-computer">Download any .dll file that is Missing in Your Computer</a> <small>Well Folks, some of you might be facing problems related...</small> </li> </ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/amitag?a=NnJDqSCk3Bs:L65K2yL2rU4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/amitag?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=NnJDqSCk3Bs:L65K2yL2rU4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/amitag?i=NnJDqSCk3Bs:L65K2yL2rU4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=NnJDqSCk3Bs:L65K2yL2rU4:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/amitag?d=YwkR-u9nhCs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=NnJDqSCk3Bs:L65K2yL2rU4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/amitag?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=NnJDqSCk3Bs:L65K2yL2rU4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/amitag?i=NnJDqSCk3Bs:L65K2yL2rU4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=NnJDqSCk3Bs:L65K2yL2rU4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/amitag?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=NnJDqSCk3Bs:L65K2yL2rU4:KwTdNBX3Jqk"><img src="http://feeds.feedburner.com/~ff/amitag?i=NnJDqSCk3Bs:L65K2yL2rU4:KwTdNBX3Jqk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=NnJDqSCk3Bs:L65K2yL2rU4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/amitag?i=NnJDqSCk3Bs:L65K2yL2rU4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=NnJDqSCk3Bs:L65K2yL2rU4:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/amitag?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/amitag/~4/NnJDqSCk3Bs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.amit-agarwal.co.in/2010/03/16/prepend-to-a-file-with-sponge-from-moreutils/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.amit-agarwal.co.in/2010/03/16/prepend-to-a-file-with-sponge-from-moreutils/</feedburner:origLink></item>
		<item>
		<title>OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic</title>
		<link>http://feedproxy.google.com/~r/amitag/~3/eF43CFhVTTc/</link>
		<comments>http://blog.amit-agarwal.co.in/2010/03/16/opendns-and-proxies-putting-it-all-together-on-ubuntu-karmic/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 02:25:41 +0000</pubDate>
		<dc:creator>Amit Agarwal</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[Dynamic Host Configuration Protocol]]></category>
		<category><![CDATA[Name server]]></category>
		<category><![CDATA[OpenDNS]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Protocols]]></category>
		<category><![CDATA[Resolv.conf]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.amit-agarwal.co.in/?p=1571</guid>
		<description><![CDATA[

Hot:





Image via Wikipedia




I’ve been running Ubuntu as my laptop operating system for quite some time (year or more) and find it to be quite wonderful. However, recently I had some nasty times getting everything to work with OpenDNS.
The easy thing to do is change /etc/resolv.conf to contain the OpenDNS entries. However, this was complicated by <a href="http://blog.amit-agarwal.co.in/2010/03/16/opendns-and-proxies-putting-it-all-together-on-ubuntu-karmic/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/8gSquEIY3a811GQCGTc--BR_lRM/0/da"><img src="http://feedads.g.doubleclick.net/~a/8gSquEIY3a811GQCGTc--BR_lRM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/8gSquEIY3a811GQCGTc--BR_lRM/1/da"><img src="http://feedads.g.doubleclick.net/~a/8gSquEIY3a811GQCGTc--BR_lRM/1/di" border="0" ismap="true"></img></a></p><img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=c4599566e98300cde7006b93a4800096&amp;default=http://blog.amit-agarwal.co.in/me.jpg' alt='No Gravatar' width=30 height=3 title="OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic" />
<table>
<tr cellpadding=0><td>Hot:</td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic" alt="sun OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic" alt="sun OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic" alt="sun dark OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic" alt="sun dark OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic" alt="sun dark OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic" /></td></tr>
</table>
<p><div class="zemanta-img">
<div>
<dl class="wp-caption alignright">
<dt class="wp-caption-dt"><a target="_blank" href="http://commons.wikipedia.org/wiki/Image:TheUbuntuName.svg" ><img title="Ubuntu wordmark official" src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/67/TheUbuntuName.svg/300px-TheUbuntuName.svg.png" alt="Ubuntu wordmark official" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution">Image via <a target="_blank" href="http://commons.wikipedia.org/wiki/Image:TheUbuntuName.svg" >Wikipedia</a></dd>
</dl>
</div>
<p><span id="more-1571"></span></p>
</div>
<p><br />
I’ve been running <a target="_blank" href="http://www.ubuntu.com/" class="zem_slink freebase/en/ubuntu" title="Ubuntu (operating system)" rel="homepage" >Ubuntu</a> as my laptop <a target="_blank" href="http://en.wikipedia.org/wiki/Operating_system" class="zem_slink freebase/en/operating_system" title="Operating system" rel="wikipedia" >operating system</a> for quite some time (year or more) and find it to be quite wonderful. However, recently I had some nasty times getting everything to work with <a target="_blank" href="http://technorati.com/tag/opendns" >OpenDNS</a>.</p>
<p>The easy thing to do is change /etc/<a target="_blank" href="http://en.wikipedia.org/wiki/Resolv.conf" class="zem_slink freebase/en/resolv_conf" title="Resolv.conf" rel="wikipedia" >resolv.conf</a> to contain the OpenDNS entries. However, this was complicated by my use of <a target="_blank" href="http://www.pps.jussieu.fr/~jch/software/polipo/" >polipo</a> (web cache), <a target="_blank" href="http://www.phys.uu.nl/~rombouts/pdnsd/" >pdnsd</a> (<a target="_blank" href="http://en.wikipedia.org/wiki/Name_server" class="zem_slink freebase/en/name_server" title="Name server" rel="wikipedia" >DNS cache</a>), and <a target="_blank" href="http://en.wikipedia.org/wiki/Resolvconf" >resolvconf</a> (a resolv.conf file manager) – not to mention the use of <a target="_blank" href="http://sourceforge.net/apps/trac/ddclient" >ddclient</a> to update the dynamic <a target="_blank" href="http://en.wikipedia.org/wiki/Internet_Protocol" class="zem_slink freebase/en/internet_protocol" title="Internet Protocol" rel="wikipedia" >IP</a> on the laptop, <em>and</em> the Gnome <a target="_blank" href="http://projects.gnome.org/NetworkManager/" >NetworkManager</a>.<br />
<!--<br />
To start at the beginning – the best thing to do is to install resolvconf by itself so that it loads and sets up first:</p>
<pre> apt-get install resolvconf
Then you can install the rest:
<pre> apt-get install polipo pdnsd ddclient</pre>
<p>Installing pdnsd will require you to specify that you want resolvconf to be used. Installing ddclient will require you to specify using dyndns2 protocol and <a target="_blank" href="http://updates.opendns.com"  mce_href="http://updates.opendns.com">updates.opendns.com</a> as the server – but the ddclient configuration will be rewritten anyway.</p>
<p>Change the /etc/pdnsd.conf file by changing the paranoid option to off:</p>
<pre> paranoid = off;</pre>
<p>This is required because <a target="_blank" href="http://technorati.com/tag/opendns" >OpenDNS</a> does some of the things that pdnsd would reject based on this setting; especially blocking sites and possibly other things. Restart pdnsd after making this configuration change.</p>
<p>Configure resolvconf next: resolvconf is configured to reject all nameserver entries except 127.* if it sees that entry. Turn this behavior off by creating /etc/defaults/pdnsd:</p>
<pre> TRUNCATE_NAMESERVER_LIST_AFTER_127=no</pre>
<p>Then create /etc/resolvconf/run/interface/opendns:</p>
<pre> nameserver 208.67.222.222 nameserver 208.67.220.220</pre>
<p>Update the resolv.conf settings with:</p>
<pre> sudo resolvconf -u</pre>
<p>Setting up polipo is not too hard, just a little contrary: it does its own DNS resolution, so that it won’t block waiting for DNS replies. To configure it, you can either use the <a target="_blank" href="http://technorati.com/tag/opendns" >OpenDNS</a> name servers directly or use pdnsd on the local machine: I recommend the latter, as it puts all of the benefits of the DNS cache to work for the web cache.</p>
<p>Change the /etc/polipo/config file to contain the following entry, and restart polipo:</p>
<pre> <a target="_blank" href="http://technorati.com/tag/dns" >dns</a>NameServer = 127.0.0.1</pre>
<p>This sets up polipo to start polling the pdnsd caching nameserver.</p>
<p>Then there is the Gnome NetworkManager: this program should be putting its configuration in resolvconf storage in /etc/resolvconf/run/interface/NetworkManager in the same format as the opendns file created earlier. You should make sure that the relevant interfaces don’t try to rewrite the DNS entries based on DHCP information – but I’ve not tested it extensively (resolvconf may overwrite DHCP entries).</p>
<p>If you are using a dynamically assigned IP – as one is on a laptop – you’ll need ddclient. A suitable configuration for <a target="_blank" href="http://technorati.com/tag/opendns" >OpenDNS</a> is the following:</p>
<pre> # /etc/ddclient.conf ssl=yes

protocol=dyndns2 use=web, web=<a target="_blank" href="http://whatismyip.org"  mce_href="http://whatismyip.org">http://whatismyip.org</a> server=<a target="_blank" href="http://updates.opendns.com"  mce_href="http://updates.opendns.com">updates.opendns.com</a> login=your_login password=your_password NetworkName</pre>
<p>The network name at the bottom should match the name you gave the network in <a target="_blank" href="http://technorati.com/tag/opendns" >OpenDNS</a>; replace spaces in the network name with underscores in the configuration file.</p>
<p>Lastly, for a test: go to <a target="_blank" href="http://welcome.opendns.com"  mce_href="http://welcome.opendns.com">http://welcome.opendns.com</a> – it will tell you whether you are using OpenDNS or not. Alternately, reload this page: the OpenDNS banner at the right will let you know if you are using OpenDNS. It might be worthwhile to reboot the system once to get everything synchronized.<br />
&#8211;><br />
[<a target="_blank" href="http://administratosphere.wordpress.com/2010/03/10/opendns-and-proxies-putting-it-all-together-on-ubuntu-karmic" >link to original</a> | source: <a target="_blank" href="http://administratosphere.wordpress.com/2010/03/10/opendns-and-proxies-putting-it-all-together-on-ubuntu-karmic" >UNIX Administratosphere</a></p>
<h6 class="zemanta-related-title">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.macworld.com/article/146064/2010/02/troubleshootdns.html?lsrc=rss_main" >Troubleshoot your DNS</a> (macworld.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://lifehacker.com/5421445/test-out-any-dns-service-in-ubuntu-without-router-tweaking" >Test Out Any DNS Service in Ubuntu Without Router Tweaking [DNS]</a> (lifehacker.com)</li>
</ul>
<div class="zemanta-pixie"><a target="_blank" href="http://reblog.zemanta.com/zemified/ef2590fd-ee59-4220-8535-be675eab5213/" class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" ><img class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_b.png?x-id=ef2590fd-ee59-4220-8535-be675eab5213" alt="Reblog this post [with Zemanta]" title="OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic" /></a><span class="zem-script more-related more-info pretty-attribution paragraph-reblog"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<hr /><h2>Related posts:</h2><ul><li><a href="http://blog.amit-agarwal.co.in/2010/02/10/script-to-watch-for-ubuntu-9-10-launch-can-be-used-in-other-scenarios/"  rel="bookmark" title="Permanent Link: Script to Watch for Ubuntu 9.10 Launch &#8211; can be used in other scenarios.">Script to Watch for Ubuntu 9.10 Launch &#8211; can be used in other scenarios.</a></li><li><a href="http://blog.amit-agarwal.co.in/2009/07/31/17-cool-firefox-tweaks/"  rel="bookmark" title="Permanent Link: 17 Cool firefox tweaks.">17 Cool firefox tweaks.</a></li><li><a href="http://blog.amit-agarwal.co.in/2009/12/24/ubuntu-tips-boot-faster/"  rel="bookmark" title="Permanent Link: Ubuntu Tips &#8211; Boot Faster">Ubuntu Tips &#8211; Boot Faster</a></li></ul><hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br />  (74.125.158.82) )</small><p><a href="http://blog.amit-agarwal.co.in/?ibsa=share&id=1571"  id="share-link-">Share</a></p>
<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a href="http://technorati.com/tag/dns" class='technorati-link'  rel='tag,nofollow' target='_blank'>dns</a>, <a href="http://technorati.com/tag/Dynamic+Host+Configuration+Protocol" class='technorati-link'  rel='tag,nofollow' target='_blank'>Dynamic Host Configuration Protocol</a>, <a href="http://technorati.com/tag/Name+server" class='technorati-link'  rel='tag,nofollow' target='_blank'>Name server</a>, <a href="http://technorati.com/tag/OpenDNS" class='technorati-link'  rel='tag,nofollow' target='_blank'>OpenDNS</a>, <a href="http://technorati.com/tag/Operating+system" class='technorati-link'  rel='tag,nofollow' target='_blank'>Operating system</a>, <a href="http://technorati.com/tag/Protocols" class='technorati-link'  rel='tag,nofollow' target='_blank'>Protocols</a>, <a href="http://technorati.com/tag/Resolv.conf" class='technorati-link'  rel='tag,nofollow' target='_blank'>Resolv.conf</a>, <a href="http://technorati.com/tag/ubuntu" class='technorati-link'  rel='tag,nofollow' target='_blank'>ubuntu</a></p>

<!-- end wp-tags-to-technorati -->
 <a STYLE="border:none;text-decoration:none;outline:none;" href="http://www.blogtrafficexchange.com"><img border="0" alt="Blog Traffic Exchange" src="http://blog.amit-agarwal.co.in/wp-content/plugins/related-websites/24x24.png"></a> <a href="http://www.blogtrafficexchange.com/related-websites"><strong>Related Websites</strong></a> <ul>  <li style="clear: both;"> <a onClick="window.location='http://bte.tc/rR'; return false;" href="http://www.weightladder.com/why-do-we-hit-plateaus/">Why Do We Hit Plateaus? </a> <small>The plateau is a dieter’s bane and even the best...</small> </li> <li style="clear: both;"> <a onClick="window.location='http://bte.tc/2BW'; return false;" href="http://www.richcreditdebtloan.com/what-is-bankruptcy/">What is Bankruptcy?</a> <small>Understand the process of bankruptcy before you file the forms...</small> </li> </ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/amitag?a=eF43CFhVTTc:G1biM4XEDQI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/amitag?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=eF43CFhVTTc:G1biM4XEDQI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/amitag?i=eF43CFhVTTc:G1biM4XEDQI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=eF43CFhVTTc:G1biM4XEDQI:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/amitag?d=YwkR-u9nhCs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=eF43CFhVTTc:G1biM4XEDQI:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/amitag?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=eF43CFhVTTc:G1biM4XEDQI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/amitag?i=eF43CFhVTTc:G1biM4XEDQI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=eF43CFhVTTc:G1biM4XEDQI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/amitag?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=eF43CFhVTTc:G1biM4XEDQI:KwTdNBX3Jqk"><img src="http://feeds.feedburner.com/~ff/amitag?i=eF43CFhVTTc:G1biM4XEDQI:KwTdNBX3Jqk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=eF43CFhVTTc:G1biM4XEDQI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/amitag?i=eF43CFhVTTc:G1biM4XEDQI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=eF43CFhVTTc:G1biM4XEDQI:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/amitag?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/amitag/~4/eF43CFhVTTc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.amit-agarwal.co.in/2010/03/16/opendns-and-proxies-putting-it-all-together-on-ubuntu-karmic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.amit-agarwal.co.in/2010/03/16/opendns-and-proxies-putting-it-all-together-on-ubuntu-karmic/</feedburner:origLink></item>
		<item>
		<title>Bug in Curl is fixed</title>
		<link>http://feedproxy.google.com/~r/amitag/~3/BGvtMLEnRxU/</link>
		<comments>http://blog.amit-agarwal.co.in/2010/03/15/bug-in-curl-is-fixed/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 09:22:10 +0000</pubDate>
		<dc:creator>Amit Agarwal</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.amit-agarwal.co.in/2009/09/15/bug-in-curl-is-fixed/</guid>
		<description><![CDATA[

Hot:

I love curl. I use it quite often to perform HTTP HEAD requests:
$ curl -I http://bashcurescancer.com
HTTP/1.1 200 OK
Date: Mon, 14 Apr 2008 03:11:35 GMT
Server: Apache/2.2.6 (Unix)
X-Pingback: http://bashcurescancer.com/wordpress/xmlrpc.php
Last-Modified: Mon, 14 Apr 2008 02:38:11 GMT
Connection: close
Content-Type: text/html; charset=UTF-8
However, I sometimes forget if a HEAD request is -I or -i, as such I &#8230;
Related posts:wordpress blog stats monitoring <a href="http://blog.amit-agarwal.co.in/2010/03/15/bug-in-curl-is-fixed/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/8p6LFxyW2sTHZOpjpmUWVa-BJwU/0/da"><img src="http://feedads.g.doubleclick.net/~a/8p6LFxyW2sTHZOpjpmUWVa-BJwU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/8p6LFxyW2sTHZOpjpmUWVa-BJwU/1/da"><img src="http://feedads.g.doubleclick.net/~a/8p6LFxyW2sTHZOpjpmUWVa-BJwU/1/di" border="0" ismap="true"></img></a></p><img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=c4599566e98300cde7006b93a4800096&amp;default=http://blog.amit-agarwal.co.in/me.jpg' alt='No Gravatar' width=30 height=3 title="Bug in Curl is fixed" />
<table>
<tr cellpadding=0><td>Hot:</td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Bug in Curl is fixed" alt="sun Bug in Curl is fixed" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Bug in Curl is fixed" alt="sun Bug in Curl is fixed" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Bug in Curl is fixed" alt="sun dark Bug in Curl is fixed" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Bug in Curl is fixed" alt="sun dark Bug in Curl is fixed" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Bug in Curl is fixed" alt="sun dark Bug in Curl is fixed" /></td></tr>
</table>
<p><p><a href="http://bashcurescancer.com/bug-in-curl-is-fixed.html">I love curl. I use it quite often to perform HTTP HEAD requests:<br />
$ curl -I http://bashcurescancer.com<br />
HTTP/1.1 200 OK<br />
Date: Mon, 14 Apr 2008 03:11:35 GMT<br />
Server: Apache/2.2.6 (Unix)<br />
X-Pingback: http://bashcurescancer.com/wordpress/xmlrpc.php<br />
Last-Modified: Mon, 14 Apr 2008 02:38:11 GMT<br />
Connection: close<br />
Content-Type: text/html; charset=UTF-8<br />
However, I sometimes forget if a HEAD request is -I or -i, as such I &#8230;</a></p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://blog.amit-agarwal.co.in/2009/12/03/wordpress-blog-stats-monitoring-from-remote-using-curl-and-bash-and-send-it-in-mail/"  rel="bookmark" title="Permanent Link: wordpress blog stats monitoring from remote using curl and bash and send it in mail.">wordpress blog stats monitoring from remote using curl and bash and send it in mail.</a></li><li><a href="http://blog.amit-agarwal.co.in/2009/11/19/processing-xml-on-the-command-line/"  rel="bookmark" title="Permanent Link: Processing XML on the Command Line">Processing XML on the Command Line</a></li><li><a href="http://blog.amit-agarwal.co.in/2009/11/25/using-snmp-trap-receiver-on-fedora-linux/"  rel="bookmark" title="Permanent Link: Using snmp trap receiver on Fedora (Linux)">Using snmp trap receiver on Fedora (Linux)</a></li></ul><hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br />  (74.125.158.82) )</small><p><a href="http://blog.amit-agarwal.co.in/?ibsa=share&id=1026"  id="share-link-">Share</a></p><p id="bte_opp"><small>Originally posted 2009-09-15 21:24:54. </small></p>
<!-- start wp-tags-to-technorati 1.01 -->

<!-- end wp-tags-to-technorati -->
 <a STYLE="border:none;text-decoration:none;outline:none;" href="http://www.blogtrafficexchange.com"><img border="0" alt="Blog Traffic Exchange" src="http://blog.amit-agarwal.co.in/wp-content/plugins/related-websites/24x24.png"></a> <a href="http://www.blogtrafficexchange.com/related-websites"><strong>Related Websites</strong></a> <ul>  <li style="clear: both;"> <a onClick="window.location='http://bte.tc/ZB'; return false;" href="http://www.joetaxpayer.com/2009-tax-rates-and-other-tidbits/">2009 Tax Rates and other Tidbits</a> <small>A few thoughts as the year comes to a close:...</small> </li> <li style="clear: both;"> <a onClick="window.location='http://bte.tc/ar-'; return false;" href="http://www.blogtrafficexchange.com/finovate-startup-2009-live-twitter/">Finovate Startup 2009 Live Twitter</a> <small>I am attending Finovate Startup 2009. It is an action...</small> </li> </ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/amitag?a=BGvtMLEnRxU:KgcAUxT2zo0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/amitag?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=BGvtMLEnRxU:KgcAUxT2zo0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/amitag?i=BGvtMLEnRxU:KgcAUxT2zo0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=BGvtMLEnRxU:KgcAUxT2zo0:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/amitag?d=YwkR-u9nhCs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=BGvtMLEnRxU:KgcAUxT2zo0:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/amitag?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=BGvtMLEnRxU:KgcAUxT2zo0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/amitag?i=BGvtMLEnRxU:KgcAUxT2zo0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=BGvtMLEnRxU:KgcAUxT2zo0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/amitag?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=BGvtMLEnRxU:KgcAUxT2zo0:KwTdNBX3Jqk"><img src="http://feeds.feedburner.com/~ff/amitag?i=BGvtMLEnRxU:KgcAUxT2zo0:KwTdNBX3Jqk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=BGvtMLEnRxU:KgcAUxT2zo0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/amitag?i=BGvtMLEnRxU:KgcAUxT2zo0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=BGvtMLEnRxU:KgcAUxT2zo0:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/amitag?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/amitag/~4/BGvtMLEnRxU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.amit-agarwal.co.in/2010/03/15/bug-in-curl-is-fixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.amit-agarwal.co.in/2010/03/15/bug-in-curl-is-fixed/</feedburner:origLink></item>
		<item>
		<title>Display the history and optionally grep</title>
		<link>http://feedproxy.google.com/~r/amitag/~3/TQU8-zfZS3k/</link>
		<comments>http://blog.amit-agarwal.co.in/2010/03/15/display-the-history-and-optionally-grep/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 09:22:09 +0000</pubDate>
		<dc:creator>Amit Agarwal</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[history]]></category>

		<guid isPermaLink="false">http://blog.amit-agarwal.co.in/?p=1323</guid>
		<description><![CDATA[

Hot:

Ever wondered how good it would be to have a command/function that would display the history or display the history with grep.

Would be really good right, well someone thought about this  
$ h() { if [ -z "$1" ]; then history; else history &#124; grep &#8220;$@&#8221;; fi; }
Place this in your .bash_profile and you <a href="http://blog.amit-agarwal.co.in/2010/03/15/display-the-history-and-optionally-grep/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/ikRMh0EWo1CgiNi8hjovQHIg57Q/0/da"><img src="http://feedads.g.doubleclick.net/~a/ikRMh0EWo1CgiNi8hjovQHIg57Q/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ikRMh0EWo1CgiNi8hjovQHIg57Q/1/da"><img src="http://feedads.g.doubleclick.net/~a/ikRMh0EWo1CgiNi8hjovQHIg57Q/1/di" border="0" ismap="true"></img></a></p><img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=c4599566e98300cde7006b93a4800096&amp;default=http://blog.amit-agarwal.co.in/me.jpg' alt='No Gravatar' width=30 height=3 title="Display the history and optionally grep" />
<table>
<tr cellpadding=0><td>Hot:</td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Display the history and optionally grep" alt="sun Display the history and optionally grep" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Display the history and optionally grep" alt="sun Display the history and optionally grep" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Display the history and optionally grep" alt="sun Display the history and optionally grep" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Display the history and optionally grep" alt="sun dark Display the history and optionally grep" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Display the history and optionally grep" alt="sun dark Display the history and optionally grep" /></td></tr>
</table>
<p>
<p>Ever wondered how good it would be to have a command/function that would display the history or display the history with <a target="_blank" href="http://en.wikipedia.org/wiki/Grep" class="zem_slink" title="Grep" rel="wikipedia" >grep</a>.</p>
<p><span id="more-1323"></span></p>
<p>Would be really good right, well someone thought about this <img src='http://blog.amit-agarwal.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Display the history and optionally grep" /> </p>
<blockquote><p>$ h() { if [ -z "$1" ]; then <a target="_blank" href="http://technorati.com/tag/history" >history</a>; else <a target="_blank" href="http://technorati.com/tag/history" >history</a> | grep &#8220;$@&#8221;; fi; }</p></blockquote>
<p>Place this in your .<a target="_blank" href="http://technorati.com/tag/bash" >bash</a>_profile and you can use it two different ways. If you issue &#8216;h&#8217; on its own, then it acts like the <a target="_blank" href="http://technorati.com/tag/history" >history</a> command. If you issue:</p>
<p>h cd</p>
<p>Then it will display all the <a target="_blank" href="http://technorati.com/tag/history" >history</a> with the word &#8216;cd&#8217;</p>
<p>* View this command to comment, vote or add to favourites * View all commands by haivu</p>
<p>commandlinefu.com</p>
<p>by David Winterbottom (codeinthehole.com)</p>
<p>URL: <a target="_blank" href="http://feedproxy.google.com/%7Er/Command-line-fu/%7E3/M_TyUNnb_IA/display-the-history-and-optionally-grep" >http://feedproxy.google.com/~r/Command-line-fu/~3/M_TyUNnb_IA/display-the-history-and-optionally-grep</a></p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a target="_blank" href="http://reblog.zemanta.com/zemified/90d298c1-644e-413c-a905-1b5b7a7d1e20/" class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" ><img class="zemanta-pixie-img" style="border: medium none ; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=90d298c1-644e-413c-a905-1b5b7a7d1e20" alt="Reblog this post [with Zemanta]" width="79" height="20" title="Display the history and optionally grep" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<hr /><h2>Comments</h2><ul><li><a href="http://blog.amit-agarwal.co.in/2010/03/15/display-the-history-and-optionally-grep/#comment-216" >October 14, 2009</a>, <a href="http://topsy.com/tb/ping.fm/9Zywc" target="_blank"   rel='external nofollow' class='url'>Tweets that mention Display the history and optionally grep « Amit Agarwal -- Topsy.com</a> writes: [...] This post was mentioned on Twitter by Amit Agarwal, Amit Agarwal. Amit Agarwal said: I just post Display the history and optionally grep on http://ping.fm/9Zywc [...]</li></ul><hr /><h2>Related posts:</h2><ul><li><a href="http://blog.amit-agarwal.co.in/2010/03/04/bash-histoy-common-history-in-different-terminals/"  rel="bookmark" title="Permanent Link: Bash histoy &#8211; common history in different terminals">Bash histoy &#8211; common history in different terminals</a></li><li><a href="http://blog.amit-agarwal.co.in/2010/02/03/remote-x-applications-on-local-display-in-fedora-11-leonidas/"  rel="bookmark" title="Permanent Link: Remote X applications on local display in Fedora 11 (leonidas).">Remote X applications on local display in Fedora 11 (leonidas).</a></li><li><a href="http://blog.amit-agarwal.co.in/2010/02/04/color-in-grep-output-to-distinquish-the-matching-entries/"  rel="bookmark" title="Permanent Link: Color in grep output to distinquish the matching entries">Color in grep output to distinquish the matching entries</a></li></ul><hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br />  (74.125.158.82) )</small><p><a href="http://blog.amit-agarwal.co.in/?ibsa=share&id=1323"  id="share-link-">Share</a></p><p id="bte_opp"><small>Originally posted 2009-10-14 20:47:08. </small></p>
<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a href="http://technorati.com/tag/bash" class='technorati-link'  rel='tag,nofollow' target='_blank'>bash</a>, <a href="http://technorati.com/tag/function" class='technorati-link'  rel='tag,nofollow' target='_blank'>function</a>, <a href="http://technorati.com/tag/history" class='technorati-link'  rel='tag,nofollow' target='_blank'>history</a></p>

<!-- end wp-tags-to-technorati -->
 <a STYLE="border:none;text-decoration:none;outline:none;" href="http://www.blogtrafficexchange.com"><img border="0" alt="Blog Traffic Exchange" src="http://blog.amit-agarwal.co.in/wp-content/plugins/related-websites/24x24.png"></a> <a href="http://www.blogtrafficexchange.com/related-websites"><strong>Related Websites</strong></a> <ul>  <li style="clear: both;"> <a onClick="window.location='http://bte.tc/7Yk'; return false;" href="http://www.msoffice-tutorial.com/getting-started-with-ms-word.php">GETTING STARTED WITH MS-WORD</a> <small>We have already told you that for working in Ms-Word...</small> </li> <li style="clear: both;"> <a onClick="window.location='http://bte.tc/pvY'; return false;" href="http://www.richcreditdebtloan.com/getting-out-of-debt-quickly-pt-3/">Getting Out of Debt Quickly pt 3</a> <small>This is part 3 of a 4 part series on...</small> </li> </ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/amitag?a=TQU8-zfZS3k:44ksrG90bak:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/amitag?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=TQU8-zfZS3k:44ksrG90bak:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/amitag?i=TQU8-zfZS3k:44ksrG90bak:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=TQU8-zfZS3k:44ksrG90bak:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/amitag?d=YwkR-u9nhCs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=TQU8-zfZS3k:44ksrG90bak:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/amitag?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=TQU8-zfZS3k:44ksrG90bak:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/amitag?i=TQU8-zfZS3k:44ksrG90bak:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=TQU8-zfZS3k:44ksrG90bak:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/amitag?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=TQU8-zfZS3k:44ksrG90bak:KwTdNBX3Jqk"><img src="http://feeds.feedburner.com/~ff/amitag?i=TQU8-zfZS3k:44ksrG90bak:KwTdNBX3Jqk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=TQU8-zfZS3k:44ksrG90bak:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/amitag?i=TQU8-zfZS3k:44ksrG90bak:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=TQU8-zfZS3k:44ksrG90bak:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/amitag?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/amitag/~4/TQU8-zfZS3k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.amit-agarwal.co.in/2010/03/15/display-the-history-and-optionally-grep/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.amit-agarwal.co.in/2010/03/15/display-the-history-and-optionally-grep/</feedburner:origLink></item>
		<item>
		<title>Delete Files older than 14 days</title>
		<link>http://feedproxy.google.com/~r/amitag/~3/cqUG-YjPR3k/</link>
		<comments>http://blog.amit-agarwal.co.in/2010/03/15/delete-files-older-than-14-days/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 09:22:08 +0000</pubDate>
		<dc:creator>Amit Agarwal</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.amit-agarwal.co.in/?p=1570</guid>
		<description><![CDATA[

Hot:

Taken from Dzone.
@echo on 
setlocal 
set srcDir=. 


]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/AVF2AfXwn6WL4Fs27FRGDxMr9ow/0/da"><img src="http://feedads.g.doubleclick.net/~a/AVF2AfXwn6WL4Fs27FRGDxMr9ow/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/AVF2AfXwn6WL4Fs27FRGDxMr9ow/1/da"><img src="http://feedads.g.doubleclick.net/~a/AVF2AfXwn6WL4Fs27FRGDxMr9ow/1/di" border="0" ismap="true"></img></a></p><img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=c4599566e98300cde7006b93a4800096&amp;default=http://blog.amit-agarwal.co.in/me.jpg' alt='No Gravatar' width=30 height=3 title="Delete Files older than 14 days" />
<table>
<tr cellpadding=0><td>Hot:</td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Delete Files older than 14 days" alt="sun Delete Files older than 14 days" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Delete Files older than 14 days" alt="sun Delete Files older than 14 days" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Delete Files older than 14 days" alt="sun dark Delete Files older than 14 days" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Delete Files older than 14 days" alt="sun dark Delete Files older than 14 days" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Delete Files older than 14 days" alt="sun dark Delete Files older than 14 days" /></td></tr>
</table>
<p>
<p>Taken from Dzone.</p>
<blockquote><p><tt>@echo on </tt></p>
<p><tt>setlocal </tt></p>
<p><tt>set srcDir=. </tt>
</p></blockquote>
<p><span id="more-1570"></span></p>
<p><!--<br />
<tt>REM the file mask, currently this will delete all *.mai files</p>
<p><tt>set dirMask=*.mai </tt></p>
<p><tt>if not "%1"=="" set srcDir=%1 </tt></p>
<p><tt>if not exist "%srcDir%" echo Directory %srcDir% does not exist.&amp;goto; :EOF </tt></p>
<p><tt>call :GETPARTS "%date% </tt></p>
<p><tt>REM set the amount of days to subtract from the current date </tt></p>
<p><tt>call :SUBTRACTDAYS 14 </tt></p>
<p><tt>set cutoffDate=%yy%/%mm%/%dd% </tt></p>
<p><tt>pushd. </tt></p>
<p><tt>cd /D %srcDir% </tt></p>
<p><tt>for /f "delims=" %%a in ('dir /b /a-d %dirMask%') do call <img src='http://blog.amit-agarwal.co.in/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' title="Delete Files older than 14 days" /> ROCESS "%%a" %%~ta </tt></p>
<p><tt>popd </tt></p>
<p><tt>goto :EOF </tt></p>
<p><tt> <img src='http://blog.amit-agarwal.co.in/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' title="Delete Files older than 14 days" /> ROCESS </tt></p>
<p><tt>call :GETPARTS %2 </tt></p>
<p><tt>REM task to perform, currently it deletes item %1 </tt><br />
<tt>if /i "%cutoffDate%" GTR "%yy%/%mm%/%dd%" del %1 </tt></p>
<p><tt>goto :EOF </tt></p>
<p><tt>:SUBTRACTDAYS </tt></p>
<p><tt>set dayCnt=%1 </tt></p>
<p><tt>if "%dayCnt%"=="" set dayCnt=1 </tt></p>
<p><tt>REM Substract your days here </tt><br />
<tt>set /A dd=1%dd% - 100 - %dayCnt% </tt><br />
<tt>set /A mm=1%mm% - 100 </tt></p>
<p><tt>:CHKDAY </tt></p>
<p><tt>if /I %dd% GTR 0 goto DONESUBTRACT </tt></p>
<p><tt>set /A mm=%mm% - 1 </tt></p>
<p><tt>if /I %mm% GTR 0 goto ADJUSTDAY </tt></p>
<p><tt>set /A mm=12 </tt><br />
<tt>set /A yy=%yy% - 1 </tt></p>
<p><tt>:ADJUSTDAY </tt></p>
<p><tt>if %mm%==1 goto SET31 </tt><br />
<tt>if %mm%==2 goto LEAPCHK </tt><br />
<tt>if %mm%==3 goto SET31 </tt><br />
<tt>if %mm%==4 goto SET30 </tt><br />
<tt>if %mm%==5 goto SET31 </tt><br />
<tt>if %mm%==6 goto SET30 </tt><br />
<tt>if %mm%==7 goto SET31 </tt><br />
<tt>if %mm%==8 goto SET31 </tt><br />
<tt>if %mm%==9 goto SET30 </tt><br />
<tt>if %mm%==10 goto SET31 </tt><br />
<tt>if %mm%==11 goto SET30 </tt><br />
<tt>REM ** Month 12 falls through </tt></p>
<p><tt>:SET31 </tt></p>
<p><tt>set /A dd=31 + %dd% </tt></p>
<p><tt>goto CHKDAY </tt></p>
<p><tt>:SET30 </tt></p>
<p><tt>set /A dd=30 + %dd% </tt></p>
<p><tt>goto CHKDAY </tt></p>
<p><tt>:LEAPCHK </tt></p>
<p><tt>set /A tt=%yy% %% 4 </tt></p>
<p><tt>if not %tt%==0 goto SET28 </tt></p>
<p><tt>set /A tt=%yy% %% 100 </tt></p>
<p><tt>if not %tt%==0 goto SET29 </tt></p>
<p><tt>set /A tt=%yy% %% 400 </tt></p>
<p><tt>if %tt%==0 goto SET29 </tt></p>
<p><tt>:SET28 </tt></p>
<p><tt>set /A dd=28 + %dd% </tt></p>
<p><tt>goto CHKDAY </tt></p>
<p><tt>:SET29 </tt></p>
<p><tt>set /A dd=29 + %dd% </tt></p>
<p><tt>goto CHKDAY </tt></p>
<p><tt> <img src='http://blog.amit-agarwal.co.in/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' title="Delete Files older than 14 days" /> ONESUBTRACT </tt></p>
<p><tt>if /I %mm% LSS 10 set mm=0%mm% </tt><br />
<tt>if /I %dd% LSS 10 set dd=0%dd% </tt></p>
<p><tt>goto :EOF </tt></p>
<p><tt>:GETPARTS </tt></p>
<p><tt>set dt=%~1 </tt><br />
<tt>set tok=1-3 </tt></p>
<p><tt>if "%dt:~0,1%" GTR "9" set tok=2-4 </tt></p>
<p><tt>set yyyy= </tt></p>
<p><tt>for /f "tokens=%tok% delims=.:/-, " %%a in ('echo %~1') do ( </tt><br />
<tt>for /f "skip=1 tokens=2-4 delims=/-,()." %%x in ('echo.^|date') do set %%x=%%a&amp;set; %%y=%%b&amp;set; %%z=%%c </tt><br />
<tt>) </tt></p>
<p><tt>if not "%yyyy%"=="" set yy=%yyyy% </tt></p>
<p><tt>if 1%yy% LSS 1000 (if %yy% LSS 70 (set yy=20%yy%) else (set yy=19%yy%)) </tt><br />
<tt>if 1%mm% LSS 100 set mm=0%mm% </tt><br />
<tt>if 1%dd% LSS 100 set dd=0%dd% </tt></p>
<p><tt>goto :EOF </tt><br />
&#8211;><br />
Read more: <a target="_blank" href="http://snippets.dzone.com/posts/show/10441" >http://snippets.dzone.com/posts/show/10441</a></p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://blog.amit-agarwal.co.in/2008/09/15/linux-find-command-find-file-and-directories-faster-and-easier/"  rel="bookmark" title="Permanent Link: Linux find command &#8211; Find file and directories faster and easier">Linux find command &#8211; Find file and directories faster and easier</a></li><li><a href="http://blog.amit-agarwal.co.in/2009/11/24/rpmsave-and-rpmnew-files/"  rel="bookmark" title="Permanent Link: rpmsave and rpmnew files.">rpmsave and rpmnew files.</a></li><li><a href="http://blog.amit-agarwal.co.in/2009/12/10/tip-using-find-command-in-linux/"  rel="bookmark" title="Permanent Link: Tip: Using find Command in Linux">Tip: Using find Command in Linux</a></li></ul><hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br />  (74.125.158.82) )</small><p><a href="http://blog.amit-agarwal.co.in/?ibsa=share&id=1570"  id="share-link-">Share</a></p>
<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a href="http://technorati.com/tag/automation" class='technorati-link'  rel='tag,nofollow' target='_blank'>automation</a>, <a href="http://technorati.com/tag/bash" class='technorati-link'  rel='tag,nofollow' target='_blank'>bash</a>, <a href="http://technorati.com/tag/script" class='technorati-link'  rel='tag,nofollow' target='_blank'>script</a></p>

<!-- end wp-tags-to-technorati -->
 <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/amitag?a=cqUG-YjPR3k:5jA1Yu_HkeU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/amitag?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=cqUG-YjPR3k:5jA1Yu_HkeU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/amitag?i=cqUG-YjPR3k:5jA1Yu_HkeU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=cqUG-YjPR3k:5jA1Yu_HkeU:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/amitag?d=YwkR-u9nhCs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=cqUG-YjPR3k:5jA1Yu_HkeU:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/amitag?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=cqUG-YjPR3k:5jA1Yu_HkeU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/amitag?i=cqUG-YjPR3k:5jA1Yu_HkeU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=cqUG-YjPR3k:5jA1Yu_HkeU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/amitag?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=cqUG-YjPR3k:5jA1Yu_HkeU:KwTdNBX3Jqk"><img src="http://feeds.feedburner.com/~ff/amitag?i=cqUG-YjPR3k:5jA1Yu_HkeU:KwTdNBX3Jqk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=cqUG-YjPR3k:5jA1Yu_HkeU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/amitag?i=cqUG-YjPR3k:5jA1Yu_HkeU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=cqUG-YjPR3k:5jA1Yu_HkeU:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/amitag?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/amitag/~4/cqUG-YjPR3k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.amit-agarwal.co.in/2010/03/15/delete-files-older-than-14-days/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.amit-agarwal.co.in/2010/03/15/delete-files-older-than-14-days/</feedburner:origLink></item>
		<item>
		<title>Using PHP to search a MySQL database and return paged results</title>
		<link>http://feedproxy.google.com/~r/amitag/~3/pP7gTpRVLxk/</link>
		<comments>http://blog.amit-agarwal.co.in/2010/03/14/using-php-to-search-a-mysql-database-and-return-paged-results/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 14:30:14 +0000</pubDate>
		<dc:creator>Amit Agarwal</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://amit-agarwal.co.in/wordpress/2008/10/19/using-php-to-search-a-mysql-database-and-return-paged-results/</guid>
		<description><![CDATA[

Hot:

Using PHP to search a MySQL database and return paged results

Link above to the article. I am using this as base to do some programming of my own for my website. When I am done I can post few more details, till then&#8230;&#8230;&#8230;&#8230;
Related posts:Execute mysql command from shellMySQL tutorial and reference manualphpMyEdit &#8211; Mysql table <a href="http://blog.amit-agarwal.co.in/2010/03/14/using-php-to-search-a-mysql-database-and-return-paged-results/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/LYbFk9L6SNRsOOVqHtNQ8fSS4BM/0/da"><img src="http://feedads.g.doubleclick.net/~a/LYbFk9L6SNRsOOVqHtNQ8fSS4BM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/LYbFk9L6SNRsOOVqHtNQ8fSS4BM/1/da"><img src="http://feedads.g.doubleclick.net/~a/LYbFk9L6SNRsOOVqHtNQ8fSS4BM/1/di" border="0" ismap="true"></img></a></p><img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=c4599566e98300cde7006b93a4800096&amp;default=http://blog.amit-agarwal.co.in/me.jpg' alt='No Gravatar' width=30 height=3 title="Using PHP to search a MySQL database and return paged results" />
<table>
<tr cellpadding=0><td>Hot:</td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Using PHP to search a MySQL database and return paged results" alt="sun Using PHP to search a MySQL database and return paged results" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Using PHP to search a MySQL database and return paged results" alt="sun Using PHP to search a MySQL database and return paged results" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Using PHP to search a MySQL database and return paged results" alt="sun Using PHP to search a MySQL database and return paged results" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Using PHP to search a MySQL database and return paged results" alt="sun dark Using PHP to search a MySQL database and return paged results" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Using PHP to search a MySQL database and return paged results" alt="sun dark Using PHP to search a MySQL database and return paged results" /></td></tr>
</table>
<p><p><a target="_blank" href="http://www.designplace.org/scripts.php?page=1amp;c_id=25" >Using PHP to search a MySQL database and return paged results</a></p>
<p><span id="more-154"></span></p>
<p>Link above to the article. I am using this as base to do some programming of my own for my website. When I am done I can post few more details, till then&#8230;&#8230;&#8230;&#8230;</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://blog.amit-agarwal.co.in/2010/02/04/execute-mysql-command-from-shell/"  rel="bookmark" title="Permanent Link: Execute mysql command from shell">Execute mysql command from shell</a></li><li><a href="http://blog.amit-agarwal.co.in/2008/10/19/mysql-tutorial-and-reference-manual/"  rel="bookmark" title="Permanent Link: MySQL tutorial and reference manual">MySQL tutorial and reference manual</a></li><li><a href="http://blog.amit-agarwal.co.in/2009/10/01/phpmyedit-mysql-table-viewer-editor-and-php-code-generator/"  rel="bookmark" title="Permanent Link: phpMyEdit &#8211; Mysql table viewer, editor and php code generator.">phpMyEdit &#8211; Mysql table viewer, editor and php code generator.</a></li></ul><hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br />  (74.125.158.82) )</small><p><a href="http://blog.amit-agarwal.co.in/?ibsa=share&id=154"  id="share-link-">Share</a></p><p id="bte_opp"><small>Originally posted 2008-10-19 20:17:30. </small></p>
<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a href="http://technorati.com/tag/mysql" class='technorati-link'  rel='tag,nofollow' target='_blank'>mysql</a>, <a href="http://technorati.com/tag/php" class='technorati-link'  rel='tag,nofollow' target='_blank'>php</a></p>

<!-- end wp-tags-to-technorati -->
 <a STYLE="border:none;text-decoration:none;outline:none;" href="http://www.blogtrafficexchange.com"><img border="0" alt="Blog Traffic Exchange" src="http://blog.amit-agarwal.co.in/wp-content/plugins/related-websites/24x24.png"></a> <a href="http://www.blogtrafficexchange.com/related-websites"><strong>Related Websites</strong></a> <ul>  <li style="clear: both;"> <a onClick="window.location='http://bte.tc/RZa'; return false;" href="http://www.blogtrafficexchange.com/the-key-to-blogging-for-profit/">The Key to Blogging for Profit</a> <small>In the last two blog posts, we talked about identifying...</small> </li> <li style="clear: both;"> <a onClick="window.location='http://bte.tc/aA9P'; return false;" href="http://www.search-commando.com/search-engine-optimization/search-engine-optimisation-pitfalls">Search Engine Optimisation Pitfalls</a> <small>On page factors - Is your website search engine friendly?...</small> </li> </ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/amitag?a=pP7gTpRVLxk:HJ0g7rckGhw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/amitag?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=pP7gTpRVLxk:HJ0g7rckGhw:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/amitag?i=pP7gTpRVLxk:HJ0g7rckGhw:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=pP7gTpRVLxk:HJ0g7rckGhw:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/amitag?d=YwkR-u9nhCs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=pP7gTpRVLxk:HJ0g7rckGhw:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/amitag?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=pP7gTpRVLxk:HJ0g7rckGhw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/amitag?i=pP7gTpRVLxk:HJ0g7rckGhw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=pP7gTpRVLxk:HJ0g7rckGhw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/amitag?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=pP7gTpRVLxk:HJ0g7rckGhw:KwTdNBX3Jqk"><img src="http://feeds.feedburner.com/~ff/amitag?i=pP7gTpRVLxk:HJ0g7rckGhw:KwTdNBX3Jqk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=pP7gTpRVLxk:HJ0g7rckGhw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/amitag?i=pP7gTpRVLxk:HJ0g7rckGhw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=pP7gTpRVLxk:HJ0g7rckGhw:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/amitag?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/amitag/~4/pP7gTpRVLxk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.amit-agarwal.co.in/2010/03/14/using-php-to-search-a-mysql-database-and-return-paged-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.amit-agarwal.co.in/2010/03/14/using-php-to-search-a-mysql-database-and-return-paged-results/</feedburner:origLink></item>
		<item>
		<title>What is my ip?</title>
		<link>http://feedproxy.google.com/~r/amitag/~3/OA9wDfkGnAQ/</link>
		<comments>http://blog.amit-agarwal.co.in/2010/03/14/what-is-my-ip/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 14:30:13 +0000</pubDate>
		<dc:creator>Amit Agarwal</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[whatismyip]]></category>

		<guid isPermaLink="false">http://blog.amit-agarwal.co.in/?p=1376</guid>
		<description><![CDATA[

Hot:

$ alias whatismyip="wget -q -O - http://whatismyip.com/automation/n09230945.asp" The preferred way for scripts (and easier to parse)

View this command to comment, vote or add to favourites
View all commands by gibboris


by David Winterbottom (codeinthehole.com)



URL: http://feedproxy.google.com/~r/Command-line-fu/~3/O6l8r0uDeTc/what-is-my-ip
CommentsNovember 11, 2009, Tweets that mention What is my ip? - Amit Agarwal -- Topsy.com writes: [...] This post was mentioned on Twitter <a href="http://blog.amit-agarwal.co.in/2010/03/14/what-is-my-ip/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/673wEH2aB4aLqjSnzI8qhFU7Uh4/0/da"><img src="http://feedads.g.doubleclick.net/~a/673wEH2aB4aLqjSnzI8qhFU7Uh4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/673wEH2aB4aLqjSnzI8qhFU7Uh4/1/da"><img src="http://feedads.g.doubleclick.net/~a/673wEH2aB4aLqjSnzI8qhFU7Uh4/1/di" border="0" ismap="true"></img></a></p><img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=c4599566e98300cde7006b93a4800096&amp;default=http://blog.amit-agarwal.co.in/me.jpg' alt='No Gravatar' width=30 height=3 title="What is my ip?" />
<table>
<tr cellpadding=0><td>Hot:</td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="What is my ip?" alt="sun What is my ip?" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="What is my ip?" alt="sun What is my ip?" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="What is my ip?" alt="sun What is my ip?" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="What is my ip?" alt="sun dark What is my ip?" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="What is my ip?" alt="sun dark What is my ip?" /></td></tr>
</table>
<p>
<p><tt>$ alias whatismyip="wget -q -O - <a target="_blank" href="http://whatismyip.com/automation/n09230945.asp&quot;" >http://whatismyip.com/automation/n09230945.asp"</a></tt> The preferred way for <a target="_blank" href="http://technorati.com/tag/scripts" >scripts</a> (and easier to parse)<span id="more-1376"></span></p>
<ul>
<li><a target="_blank" href="http://www.commandlinefu.com/commands/view/3943/what-is-my-ip" >View this command to comment, vote or add to favourites</a></li>
<li><a target="_blank" href="http://feeds2.feedburner.com/commands/by/gibboris" >View all commands by </a><strong><a target="_blank" href="http://feeds2.feedburner.com/commands/by/gibboris" >gibboris</a></strong></li>
</ul>
<p><a target="_blank" href="http://www.commandlinefu.com" ><img src="http://www.commandlinefu.com/images/header-logo.jpg" alt="header logo What is my ip?" align="bottom" title="What is my ip?" /></a></p>
<p>by David Winterbottom (<a target="_blank" href="http://codeinthehole.com" >codeinthehole.com</a>)</p>
<p><a target="_blank" href="http://feedads.g.doubleclick.net/~a/Ytz2VmntW_MS33pd5-JeJzhnUZo/0/da" ><img src="http://feedads.g.doubleclick.net/~a/Ytz2VmntW_MS33pd5-JeJzhnUZo/0/di" alt=" What is my ip?" align="bottom" title="What is my ip?" /></a><br />
<a target="_blank" href="http://feedads.g.doubleclick.net/~a/Ytz2VmntW_MS33pd5-JeJzhnUZo/1/da" ><img src="http://feedads.g.doubleclick.net/~a/Ytz2VmntW_MS33pd5-JeJzhnUZo/1/di" alt=" What is my ip?" align="bottom" title="What is my ip?" /></a></p>
<p><img src="http://feeds.feedburner.com/~r/Command-line-fu/~4/O6l8r0uDeTc" alt=" What is my ip?" width="1" height="1" align="bottom" title="What is my ip?" /></p>
<p>URL: <a target="_blank" href="http://feedproxy.google.com/~r/Command-line-fu/~3/O6l8r0uDeTc/what-is-my-ip" >http://feedproxy.google.com/~r/Command-line-fu/~3/O6l8r0uDeTc/what-is-my-ip</a></p>
<hr /><h2>Comments</h2><ul><li><a href="http://blog.amit-agarwal.co.in/2010/03/14/what-is-my-ip/#comment-311" >November 11, 2009</a>, <a href="http://topsy.com/tb/ping.fm/7YtOZ" target="_blank"   rel='external nofollow' class='url'>Tweets that mention What is my ip? - Amit Agarwal -- Topsy.com</a> writes: [...] This post was mentioned on Twitter by Amit Agarwal, Amit Agarwal. Amit Agarwal said: I just post What is my ip? on http://ping.fm/7YtOZ [...]</li></ul><hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br />  (74.125.158.82) )</small><p><a href="http://blog.amit-agarwal.co.in/?ibsa=share&id=1376"  id="share-link-">Share</a></p><p id="bte_opp"><small>Originally posted 2009-11-11 07:57:05. </small></p>
<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a href="http://technorati.com/tag/scripts" class='technorati-link'  rel='tag,nofollow' target='_blank'>scripts</a>, <a href="http://technorati.com/tag/whatismyip" class='technorati-link'  rel='tag,nofollow' target='_blank'>whatismyip</a></p>

<!-- end wp-tags-to-technorati -->
 <a STYLE="border:none;text-decoration:none;outline:none;" href="http://www.blogtrafficexchange.com"><img border="0" alt="Blog Traffic Exchange" src="http://blog.amit-agarwal.co.in/wp-content/plugins/related-websites/24x24.png"></a> <a href="http://www.blogtrafficexchange.com/related-websites"><strong>Related Websites</strong></a> <ul>  <li style="clear: both;"> <a onClick="window.location='http://bte.tc/aMjp'; return false;" href="http://www.theresabloginmysoup.com/twitter-tweets-about-lifehacks-as-of-april-22-2009/">Twitter Tweets about Lifehacks as of April 22, 2009</a> <small>laflaneur: Daily lifehack: 2GB online storage = never email things...</small> </li> <li style="clear: both;"> <a onClick="window.location='http://bte.tc/aKbH'; return false;" href="http://www.theresabloginmysoup.com/twitter-tweets-about-facebook-as-of-april-22-2009/">Twitter Tweets about Facebook as of April 22, 2009</a> <small>Eldonb: Windows Live Becomes Even More Social: Integrates Facebook, Last.fm,...</small> </li> </ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/amitag?a=OA9wDfkGnAQ:IMqE7_5q6wc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/amitag?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=OA9wDfkGnAQ:IMqE7_5q6wc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/amitag?i=OA9wDfkGnAQ:IMqE7_5q6wc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=OA9wDfkGnAQ:IMqE7_5q6wc:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/amitag?d=YwkR-u9nhCs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=OA9wDfkGnAQ:IMqE7_5q6wc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/amitag?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=OA9wDfkGnAQ:IMqE7_5q6wc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/amitag?i=OA9wDfkGnAQ:IMqE7_5q6wc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=OA9wDfkGnAQ:IMqE7_5q6wc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/amitag?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=OA9wDfkGnAQ:IMqE7_5q6wc:KwTdNBX3Jqk"><img src="http://feeds.feedburner.com/~ff/amitag?i=OA9wDfkGnAQ:IMqE7_5q6wc:KwTdNBX3Jqk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=OA9wDfkGnAQ:IMqE7_5q6wc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/amitag?i=OA9wDfkGnAQ:IMqE7_5q6wc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=OA9wDfkGnAQ:IMqE7_5q6wc:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/amitag?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/amitag/~4/OA9wDfkGnAQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.amit-agarwal.co.in/2010/03/14/what-is-my-ip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.amit-agarwal.co.in/2010/03/14/what-is-my-ip/</feedburner:origLink></item>
		<item>
		<title>[Movie Review]RANN- predictable from Puttu</title>
		<link>http://feedproxy.google.com/~r/amitag/~3/3lhRyEK5kfE/</link>
		<comments>http://blog.amit-agarwal.co.in/2010/03/14/movie-reviewrann-predictable-from-puttu/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 14:30:12 +0000</pubDate>
		<dc:creator>Amit Agarwal</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Arts]]></category>
		<category><![CDATA[Breaking news]]></category>
		<category><![CDATA[Compact Disc]]></category>
		<category><![CDATA[Journalist]]></category>
		<category><![CDATA[Mohnish Behl]]></category>
		<category><![CDATA[Movies]]></category>
		<category><![CDATA[Paresh Rawal]]></category>
		<category><![CDATA[Printing]]></category>

		<guid isPermaLink="false">http://blog.amit-agarwal.co.in/?p=1572</guid>
		<description><![CDATA[

Hot:

IdealisticHarshvardhan mallik( B) and his son Jay(Sudeep), find their channel loosing out on popularity ratings for a rival channel smartly run by his X-employee Mohnish Behl. Jay is provoked and hence in an attempt to rebuild and regain the foothold,he plans a sting operationwith aspiring PM Manoj Pandey(Paresh Rawal) and his Co-Bro industrialistRajat Kapoor. Everybody <a href="http://blog.amit-agarwal.co.in/2010/03/14/movie-reviewrann-predictable-from-puttu/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/SVhEWRz7gd99ZTmvMiZ_1YbpXgQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/SVhEWRz7gd99ZTmvMiZ_1YbpXgQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/SVhEWRz7gd99ZTmvMiZ_1YbpXgQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/SVhEWRz7gd99ZTmvMiZ_1YbpXgQ/1/di" border="0" ismap="true"></img></a></p><img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=c4599566e98300cde7006b93a4800096&amp;default=http://blog.amit-agarwal.co.in/me.jpg' alt='No Gravatar' width=30 height=3 title="[Movie Review]RANN  predictable from Puttu" />
<table>
<tr cellpadding=0><td>Hot:</td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="[Movie Review]RANN  predictable from Puttu" alt="sun [Movie Review]RANN  predictable from Puttu" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="[Movie Review]RANN  predictable from Puttu" alt="sun [Movie Review]RANN  predictable from Puttu" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="[Movie Review]RANN  predictable from Puttu" alt="sun [Movie Review]RANN  predictable from Puttu" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="[Movie Review]RANN  predictable from Puttu" alt="sun dark [Movie Review]RANN  predictable from Puttu" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="[Movie Review]RANN  predictable from Puttu" alt="sun dark [Movie Review]RANN  predictable from Puttu" /></td></tr>
</table>
<p>
<blockquote><p><strong>IdealisticHarshvardhan mallik(</strong><strong><span style="font-size: medium;"> </span><span style="color: #ff420e;">B</span></strong><strong>) and his son Jay(<a target="_blank" href="http://en.wikipedia.org/wiki/Sudeep" class="zem_slink freebase/en/sudeep" title="Sudeep" rel="wikipedia" >Sudeep</a>), find their channel loosing out on </strong><strong><span style="color: #9999ff;">popularity ratings</span></strong><strong> for a rival </strong><strong><span style="color: #7e0021;">channel smartly run</span></strong><strong> by his X-employee <a target="_blank" href="http://www.imdb.com/name/nm0046894/" class="zem_slink freebase/en/mohnish_behl" title="Mohnish Behl" rel="imdb" >Mohnish Behl</a>. Jay is provoked and hence in an attempt to rebuild and regain the foothold,he </strong><strong><span style="color: #00ae00;">plans a <a target="_blank" href="http://en.wikipedia.org/wiki/Sting_operation" class="zem_slink freebase/en/sting_operation" title="Sting operation" rel="wikipedia" >sting operation</a></span></strong><strong>with aspiring PM </strong><strong><span style="color: #280099;">Manoj Pandey</span></strong><strong>(<a target="_blank" href="http://www.imdb.com/name/nm0712546/" class="zem_slink freebase/en/paresh_rawal" title="Paresh Rawal" rel="imdb" >Paresh Rawal</a>) and his </strong><strong><span style="color: #00cccc;">Co-Bro industrialist</span></strong><strong>Rajat Kapoor. Everybody gets their share,but end up </strong><strong><span style="color: #0099ff;">gobbling the</span></strong><strong> truth. How is that revealed and what are their</strong><strong><span style="color: #94bd5e;">repurcussions forms the rest. </span></strong></p>
<p><span id="more-1572"></span></p>
<p><strong>Frankly this aint a </strong><strong><span style="color: #5e11a6;">media centric movie</span></strong><strong>, it is just a </strong><strong><span style="color: #00ff00;">common thing among</span></strong><strong> all the characters. It doesn&#8217;t give an insight or per se the background </strong><strong><span style="color: #00dcff;">processing of how <a target="_blank" href="http://en.wikipedia.org/wiki/Printing" class="zem_slink freebase/en/printing" title="Printing" rel="wikipedia" >print media</a> sell news and grab people&#8217;s attention</span></strong><strong>. Okay we even despise this fact, since movies are not meant to educate, but to entertain. Then in that case <a target="_blank" href="http://www.janaganarann.com/" class="zem_slink freebase/guid/9202a8c04000641f800000000a382166" title="Rann (film)" rel="homepage" >Rann</a> aint such a bad movie. Infact its a movie wherein </strong><strong><span style="color: #5e11a6;">conflicting characters are</span></strong><strong> caught in different situations and the way they react to it. Though predictable for most part, it keeps you</strong><strong><span style="color: #00cccc;">interested because of RGV&#8217;s style</span></strong><strong>of framing.</strong></p>
<p><strong>For example, a scene where <a target="_blank" href="http://technorati.com/tag/paresh-rawal" >Paresh Rawal</a> bursts </strong><strong><span style="color: #0099ff;">into different giggles</span></strong><strong>by looking at her </strong><strong><span style="color: #47b8b8;">grandmother</span></strong><strong>while negotiating with <a target="_blank" href="http://technorati.com/tag/mohnish-behl" >Mohnish Behl</a>, is </strong><strong><span style="color: #5c8526;">endearing to watch</span></strong><strong>. </strong></p>
<p><strong>In another scene, involving him he delivers following line to display his ferociousness </strong><strong><span style="color: #b3b300;">“Kuch to vajay hogi ki hum Manoj pandey hain”.. </span></strong></p>
<p><strong>Sudeep as Jay has mighty role, but he </strong><strong><span style="color: #ff6309;">hams it up at one point and alleviates at another</span></strong><strong>. Watch him in that scene where he tries to </strong><strong><span style="color: #0084d1;">convince </span></strong><strong><span style="color: #0084d1;"> </span><span style="font-size: medium;">B</span></strong><strong><span style="color: #0084d1;">of the sting operation</span></strong><strong>. </strong></p>
<p><strong>Paresh rawal (last seen in <a target="_blank" href="http://www.imdb.com/title/tt0118931/" class="zem_slink freebase/en/daud" title="Daud (film)" rel="imdb" >Daud</a>), as usual is a </strong><strong><span style="color: #ffb515;">irresistable to watch in</span></strong><strong>dhoti clad goonda.. </strong></p>
<p><strong>Rajpal yadav as wannabe <a target="_blank" href="http://en.wikipedia.org/wiki/Compact_Disc" class="zem_slink freebase/en/compact_disc" title="Compact Disc" rel="wikipedia" >CD</a> perfectly</strong><strong><span style="color: #47b8b8;">describes the nuts running</span></strong><strong>behind <a target="_blank" href="http://en.wikipedia.org/wiki/Breaking_news" class="zem_slink freebase/en/breaking_news" title="Breaking news" rel="wikipedia" >breaking news</a>. </strong></p>
<p><strong>Riteish deshmukh(Parag shastry, find out what his role is) an ardent fan of Harshvardhan mallik, </strong><strong><span style="color: #944794;">plays a straight faced <a target="_blank" href="http://en.wikipedia.org/wiki/Journalist" class="zem_slink freebase/en/journalist" title="Journalist" rel="wikipedia" >journalist</a></span></strong><strong> with little effect. </strong></p>
<p><strong>Mohnish behl looks unreal and</strong><strong><span style="color: #47b8b8;">overcooks himself. </span></strong></p>
<p><strong><span style="color: #ff00ff;">Big B is mechanical throughout</span></strong><strong>,other than the the final act. Watch him closely in that terrifically rendered confession cum monologue at the end, </strong><strong><span style="color: #ff3333;">u see trembling hands</span></strong><strong>. </strong></p>
<p><strong>Dont expect a complete </strong><strong><span style="color: #4700b8;">parda-fash or revelation of how </span></strong><strong>media mis-use,glorify and magnify the news. The film explains the effect that media has on the ppl involved</strong><strong><span style="color: #3deb3d;"> in a capsulic way,</span></strong><strong>including us &#8211; the couch potatoes, but never explains </strong><strong><span style="color: #00dcff;">the effect on media itself.</span></strong><strong>And that is an irony.</strong></p>
<p><strong>As mentioned above its not </strong><strong><span style="color: #ff00ff;">“Not-watchable” kinda of movie </span></strong><strong>in its entirety, but give it a shot if u have an appetite for </strong><strong><span style="color: #6b0094;">RGV&#8217;s trademark narration</span></strong><strong> and and his team&#8217;s technical brilliance.</strong></p></blockquote>
<p><strong>The review is done by Prashant Prahlad Abkari, who is a collegue and good friend of mine.<br />
</strong></p>
<div class="zemanta-pixie"><a target="_blank" href="http://reblog.zemanta.com/zemified/5e4210a1-af6c-4417-a5e2-0955072acc18/" class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" ><img class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_b.png?x-id=5e4210a1-af6c-4417-a5e2-0955072acc18" alt="Reblog this post [with Zemanta]" title="[Movie Review]RANN  predictable from Puttu" /></a><span class="zem-script more-related more-info pretty-attribution paragraph-reblog"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<hr /><h2>Related posts:</h2><ul><li><a href="http://blog.amit-agarwal.co.in/2010/01/03/ubuntu-sucks-like-a-shopvac-and-other-linux-rants/"  rel="bookmark" title="Permanent Link: Ubuntu Sucks Like a Shopvac and Other Linux Rants">Ubuntu Sucks Like a Shopvac and Other Linux Rants</a></li><li><a href="http://blog.amit-agarwal.co.in/2010/02/02/play-media-files-in-fedora/"  rel="bookmark" title="Permanent Link: Play media files in fedora.">Play media files in fedora.</a></li></ul><hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br />  (74.125.158.82) )</small><p><a href="http://blog.amit-agarwal.co.in/?ibsa=share&id=1572"  id="share-link-">Share</a></p>
<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a href="http://technorati.com/tag/Arts" class='technorati-link'  rel='tag,nofollow' target='_blank'>Arts</a>, <a href="http://technorati.com/tag/Breaking+news" class='technorati-link'  rel='tag,nofollow' target='_blank'>Breaking news</a>, <a href="http://technorati.com/tag/Compact+Disc" class='technorati-link'  rel='tag,nofollow' target='_blank'>Compact Disc</a>, <a href="http://technorati.com/tag/Journalist" class='technorati-link'  rel='tag,nofollow' target='_blank'>Journalist</a>, <a href="http://technorati.com/tag/Mohnish+Behl" class='technorati-link'  rel='tag,nofollow' target='_blank'>Mohnish Behl</a>, <a href="http://technorati.com/tag/Movies" class='technorati-link'  rel='tag,nofollow' target='_blank'>Movies</a>, <a href="http://technorati.com/tag/Paresh+Rawal" class='technorati-link'  rel='tag,nofollow' target='_blank'>Paresh Rawal</a>, <a href="http://technorati.com/tag/Printing" class='technorati-link'  rel='tag,nofollow' target='_blank'>Printing</a></p>

<!-- end wp-tags-to-technorati -->
 <a STYLE="border:none;text-decoration:none;outline:none;" href="http://www.blogtrafficexchange.com"><img border="0" alt="Blog Traffic Exchange" src="http://blog.amit-agarwal.co.in/wp-content/plugins/related-websites/24x24.png"></a> <a href="http://www.blogtrafficexchange.com/related-websites"><strong>Related Websites</strong></a> <ul>  <li style="clear: both;"> <a onClick="window.location='http://bte.tc/avjB'; return false;" href="http://www.golfballdriver.com/crane-wins-farmers-insurance-open-in-san-diego/">Crane Wins Farmers Insurance Open in San Diego</a> <small>Ben Crane won by one stroke at the Farmers Insurance...</small> </li> <li style="clear: both;"> <a onClick="window.location='http://bte.tc/86b'; return false;" href="http://weakonomics.com/2008/11/15/weakonomics-weekend-edition-vodka-martini-edition/">Weakonomics Weekend Edition: Vodka Martini Edition </a> <small>I think you know I'm a big James Bond fan....</small> </li> </ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/amitag?a=3lhRyEK5kfE:jB7hqJTtd9I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/amitag?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=3lhRyEK5kfE:jB7hqJTtd9I:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/amitag?i=3lhRyEK5kfE:jB7hqJTtd9I:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=3lhRyEK5kfE:jB7hqJTtd9I:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/amitag?d=YwkR-u9nhCs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=3lhRyEK5kfE:jB7hqJTtd9I:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/amitag?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=3lhRyEK5kfE:jB7hqJTtd9I:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/amitag?i=3lhRyEK5kfE:jB7hqJTtd9I:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=3lhRyEK5kfE:jB7hqJTtd9I:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/amitag?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=3lhRyEK5kfE:jB7hqJTtd9I:KwTdNBX3Jqk"><img src="http://feeds.feedburner.com/~ff/amitag?i=3lhRyEK5kfE:jB7hqJTtd9I:KwTdNBX3Jqk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=3lhRyEK5kfE:jB7hqJTtd9I:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/amitag?i=3lhRyEK5kfE:jB7hqJTtd9I:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=3lhRyEK5kfE:jB7hqJTtd9I:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/amitag?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/amitag/~4/3lhRyEK5kfE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.amit-agarwal.co.in/2010/03/14/movie-reviewrann-predictable-from-puttu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.amit-agarwal.co.in/2010/03/14/movie-reviewrann-predictable-from-puttu/</feedburner:origLink></item>
		<item>
		<title>Recovering Deleted Files With lsof</title>
		<link>http://feedproxy.google.com/~r/amitag/~3/EEX9FcjJaWU/</link>
		<comments>http://blog.amit-agarwal.co.in/2010/03/13/recovering-deleted-files-with-lsof/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 02:48:58 +0000</pubDate>
		<dc:creator>Amit Agarwal</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[undelete]]></category>

		<guid isPermaLink="false">http://blog.amit-agarwal.co.in/2009/06/02/recovering-deleted-files-with-lsof/</guid>
		<description><![CDATA[

Hot:

Quick update, found this nice article on how to recover deleted file, if its still open by some process.Recovering Deleted Files With lsof

Related posts:Determine what process is listening on a port on Solaris, without lsofrebuild rpm from installed rpm with rpmrebuildInitialization or clearing of log filesCopyright &#169; 2008 This feed is for personal, non-commercial use <a href="http://blog.amit-agarwal.co.in/2010/03/13/recovering-deleted-files-with-lsof/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/iacvurrGjsurMFNM-jyVrM6qvyg/0/da"><img src="http://feedads.g.doubleclick.net/~a/iacvurrGjsurMFNM-jyVrM6qvyg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/iacvurrGjsurMFNM-jyVrM6qvyg/1/da"><img src="http://feedads.g.doubleclick.net/~a/iacvurrGjsurMFNM-jyVrM6qvyg/1/di" border="0" ismap="true"></img></a></p><img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=c4599566e98300cde7006b93a4800096&amp;default=http://blog.amit-agarwal.co.in/me.jpg' alt='No Gravatar' width=30 height=3 title="Recovering Deleted Files With lsof" />
<table>
<tr cellpadding=0><td>Hot:</td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Recovering Deleted Files With lsof" alt="sun Recovering Deleted Files With lsof" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Recovering Deleted Files With lsof" alt="sun Recovering Deleted Files With lsof" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 title="Recovering Deleted Files With lsof" alt="sun Recovering Deleted Files With lsof" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Recovering Deleted Files With lsof" alt="sun dark Recovering Deleted Files With lsof" /></td><td cellpadding=0><img src='http://blog.amit-agarwal.co.in/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 title="Recovering Deleted Files With lsof" alt="sun dark Recovering Deleted Files With lsof" /></td></tr>
</table>
<p>
<p>Quick update, found this nice article on how to recover deleted file, if its still open by some process.<br /><a target="_blank" href="http://www.serverwatch.com/tutorials/article.php/3822816" >Recovering Deleted Files With lsof</a><br /><span id="more-791"></span></p>
<blockquote></blockquote>
<hr /><h2>Related posts:</h2><ul><li><a href="http://blog.amit-agarwal.co.in/2010/01/14/determine-what-process-is-listening-on-a-port-on-solaris-without-lsof/"  rel="bookmark" title="Permanent Link: Determine what process is listening on a port on Solaris, without lsof">Determine what process is listening on a port on Solaris, without lsof</a></li><li><a href="http://blog.amit-agarwal.co.in/2009/10/22/rebuild-rpm-from-installed-rpm-with-rpmrebuild/"  rel="bookmark" title="Permanent Link: rebuild rpm from installed rpm with rpmrebuild">rebuild rpm from installed rpm with rpmrebuild</a></li><li><a href="http://blog.amit-agarwal.co.in/2009/12/22/initialization-or-clearing-of-log-files/"  rel="bookmark" title="Permanent Link: Initialization or clearing of log files">Initialization or clearing of log files</a></li></ul><hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br />  (74.125.158.82) )</small><p><a href="http://blog.amit-agarwal.co.in/?ibsa=share&id=791"  id="share-link-">Share</a></p><p id="bte_opp"><small>Originally posted 2009-06-02 08:00:05. </small></p>
<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a href="http://technorati.com/tag/file" class='technorati-link'  rel='tag,nofollow' target='_blank'>file</a>, <a href="http://technorati.com/tag/recovery" class='technorati-link'  rel='tag,nofollow' target='_blank'>recovery</a>, <a href="http://technorati.com/tag/undelete" class='technorati-link'  rel='tag,nofollow' target='_blank'>undelete</a></p>

<!-- end wp-tags-to-technorati -->
 <a STYLE="border:none;text-decoration:none;outline:none;" href="http://www.blogtrafficexchange.com"><img border="0" alt="Blog Traffic Exchange" src="http://blog.amit-agarwal.co.in/wp-content/plugins/related-websites/24x24.png"></a> <a href="http://www.blogtrafficexchange.com/related-websites"><strong>Related Websites</strong></a> <ul>  <li style="clear: both;"> <a onClick="window.location='http://bte.tc/wf7'; return false;" href="http://www.rinart-woodwork.com/some-powerful-ways-to-minimize-global-warming-2.html">Some Powerful Ways to Minimize Global Warming </a> <small>Lots of studies have reported that global warming has lots...</small> </li> <li style="clear: both;"> <a onClick="window.location='http://bte.tc/krG'; return false;" href="http://www.acousticmusicalinstruments.com/wind-instruments-guide-101-pt-3/">Wind Instruments Guide 101 pt 3</a> <small>Here is a guide to some of the more common...</small> </li> </ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/amitag?a=EEX9FcjJaWU:CJ7y83cMATQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/amitag?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=EEX9FcjJaWU:CJ7y83cMATQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/amitag?i=EEX9FcjJaWU:CJ7y83cMATQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=EEX9FcjJaWU:CJ7y83cMATQ:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/amitag?d=YwkR-u9nhCs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=EEX9FcjJaWU:CJ7y83cMATQ:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/amitag?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=EEX9FcjJaWU:CJ7y83cMATQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/amitag?i=EEX9FcjJaWU:CJ7y83cMATQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=EEX9FcjJaWU:CJ7y83cMATQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/amitag?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=EEX9FcjJaWU:CJ7y83cMATQ:KwTdNBX3Jqk"><img src="http://feeds.feedburner.com/~ff/amitag?i=EEX9FcjJaWU:CJ7y83cMATQ:KwTdNBX3Jqk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=EEX9FcjJaWU:CJ7y83cMATQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/amitag?i=EEX9FcjJaWU:CJ7y83cMATQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/amitag?a=EEX9FcjJaWU:CJ7y83cMATQ:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/amitag?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/amitag/~4/EEX9FcjJaWU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.amit-agarwal.co.in/2010/03/13/recovering-deleted-files-with-lsof/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.amit-agarwal.co.in/2010/03/13/recovering-deleted-files-with-lsof/</feedburner:origLink></item>
	</channel>
</rss>
