Multiple search in vim

2009-11-19 1 min read Learning Linux

I was looking at a log file and needed to highlight multiple search items to make the logs more readable. I got into multiple threads suggesting various cryptic vim commands but I was in no mood to remember them. So, I finally hit <a href="http://www.vim.org/scripts/script.php?script_id=479" target="_blank">this.

This is a cool vim script which you can use to highlight multiple search patter. You can simply add a search term by doing

Continue reading

Calculations

2009-11-17 1 min read Fedora Learning Linux

<img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/perl-one-liners.jpg" alt="Perl One Liners" align="bottom" />This is the third part of a seven-part article on famous Perl one-liners. In this part I will create various one-liners for calculations. See <a href="http://www.catonmat.net/blog/perl-one-liners-explained-part-one/">part one for introduction of the series.

Famous Perl one-liners is my attempt to create “perl1line.txt” that is similar to “<a href="http://www.catonmat.net/blog/awk-one-liners-explained-part-one/">awk1line.txt” and “<a href="http://www.catonmat.net/blog/sed-one-liners-explained-part-one/">sed1line.txt” that have been so popular among Awk and Sed programmers.

The article on famous Perl one-liners will consist of at least seven parts:

Continue reading

bash colors

2009-11-16 0 min read Bash
\"People
Image via Wikipedia

For those of the terminal freaks, color is a bliss. But have you tried all the colors in the terminal. Today someone forwarded me a bash one liner for the same. Not sure where he got this from, anyway here is the one liner for you all:

Continue reading

chatting with your friends when all chat sites are blocked.

2009-11-15 1 min read Linux

You can use, <a href="http://chat.aka-photo.com/">http://chat.aka-photo.com/.
I just installed it to keep my self connected with the other friends of mine. Does not store the data for long and no need to create a username if you dont want to .. just enter any name in the username and press enter. Ask the other person to join the same room and that&#8217;s it.

Oh, BTW, I bought this domain to lauch another <a href="http://eshop.aka-photos.com">e-shop or at <a href="http://shop.aka-photos.com">shop. Aha, do let me know which one looks better.

Continue reading

Access the disk image created by Qemu using guestfish in Fedora.

2009-11-11 1 min read Fedora

If you are used to using Qemu for doing some experiments with different distro&#8217;s then you would also understand the problem of having to do ftp/ssh to copy the files from virtual machine to local machine. Also you have to run the machine to do that. How would you like to have a application that can help you copy the files to and from the  image without having to run the VM. That&#8217;s exactly what the guestfish does. How to do it, quick demo here:

Continue reading
Older posts Newer posts