Happy Independence Day

2010-08-15 1 min read Uncategorized
Happy Independence Day to all. <a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/DSCN1316.jpg"><img class="size-medium wp-image-2374" title="Independence Day Celebration in School" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/DSCN1316-300x205.jpg" alt="Independence Day Celebration in School" width="300" height="205" /><div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=a412647a-18c4-4f00-a62f-93de0d55329f" alt="Enhanced by Zemanta" /><span class="zem-script more-related pretty-attribution">

Display the history and optionally grep

2010-05-19 1 min read bash
Ever wondered how good it would be to have a command/function that would display the history or display the history with <a class="zem_slink" title="Grep" rel="wikipedia" href="http://en.wikipedia.org/wiki/Grep">grep. Would be really good right, well someone thought about this 🙂 $ h() { if [ -z &#8221;$1&#8221; ]; then history; else history | grep &#8221;$@&#8221;; fi; } Place this in your .bash_profile and you can use it two different ways. If you issue &#8217;h&#8217; on its own, then it acts like the history command. Continue reading

Some Rather Old But Still Funny Anti-UNIX Jokes (One Liners)

2009-12-28 3 min read Linux
<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2009/12/unix-jokes1.jpg"><img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/unix-jokes1.jpg" alt="" align="bottom" />You may have heard a lot of anti-<a class="zem_slink freebase/en/microsoft" title="Microsoft" rel="homepage" href="http://www.microsoft.com">Microsoft jokes before since you can read them everywhere. However, it&#8217;s pretty rare to find anti-UNIX/Linux jokes. So I would like to share with you some pretty old but still funny anti-UNIX one-liners. Enjoy! If <a class="zem_slink freebase/en/unix" title="Unix" rel="wikipedia" href="http://en.wikipedia.org/wiki/Unix">Unix is the answer, then it must have been a stupid question. Continue reading