Display the output of a command from the first line until the first instance of a regular expression.
2010/01/04
| perl -n -e 'print "$_" if 1 … /«a class="zem_slink freebase/en/regular_expression" title="Regular expression" rel="wikipedia" …
Finding all the executables/binary in Linux rpm based distro.
2010/01/03
I have been thinking about this for quite sometime now, how to find all the executables on the linux system. One of the way is to do a ”ls” on all the directories in the PATH …
Fedora 12 demonstrates sandbox for desktop applications
2010/01/03
<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category Security-Enhanced Linux (SELinux) specialist and Red Hat developer Dan Walsh has souped up the security …
Simple rss to email service for your feeds on Linux with your/ISP server.
2010/01/01
I like couple of blogs and feeds but the problem is that I keep forgetting to run the rss reader and would rather like to have the rss article’s emailed to me at regular intervals so that I …
Happy New year to all.
2009/12/31
A very happy and Prosperous new year to all.
Some Rather Old But Still Funny Anti-UNIX Jokes (One Liners)
2009/12/28
<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" …
Nifty Things to Do with GIMP
2009/12/26
Nifty Things to Do with GIMP Some of us are probably addicted to capturing moments in pictures. I can understand why. It’s one of those things that help us go back to the good old days, so to speak. …
Merry Christmas
2009/12/25
Just saying Merry Christmas to you all.. Have a bash !!!
query and downgrade selected packages based on version or repository
2009/12/24
If you have worked on rpm based distro then you know how difficult it is to downgrade packages. And unluckily I upgraded some packages to fc12 and was still on FC11. Completely my mistake while doing …
EncFS – Simple article to use Encrypted filesystem in Linux
2009/12/24
A nice article here EncFS is an easy-to-use, command-line tool for storing information in encrypted form. It’s not really a file-system, but it pretends to be one at the CLI. If you’ve been searching …
Ubuntu Tips – Boot Faster
2009/12/24
<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category Ubuntu Tips – Boot Faster LinuxLinks: ”With just a few modifications and some experimentation, …
Finding all numbers that are bigger than 1 in vim
2009/12/24
/^([2-9]d*|1d+) If we have a csv like structure The trick here is simple, lets look at the regex from the begining: ^ – start from the begining () – start and end of block [] – digits within this. So …