Languages

Thumbnail

bash debug – log all executed commands

2014/02/03

Whenever I am writing a script in perl or bash, I always wish that there was some way to have all the commands logged or output to screen. I know there is “set -x” option to have debugging enabled, …

Fix typescript files generated with script command

2013/12/18

Generally quite a lot of us would have used the script command. This generates the logs for the session. But the problem with the logs is that it contains a lot of un-readable characters. These …

create text tables from delimited files.

2013/07/12

To create simple text tables to paste in emails or to use in any other document where you want to show a table, here is something that you can use. There is a perl module which provides “tablify“. And …

Vim – Why and where am I getting these errors from?

2013/05/15

If you have got this question in your mind, then you are in right place. vim -V20 2>&1 |tee You can give the debugfile as any file, where you would want to log the debug messages. This will log a …

pigz -parallel gzip

2012/03/26

Here is a short description of pigz: […] pigz, which stands for parallel implementation of gzip, is a fully functional replacement for gzip that exploits multiple processors and multiple cores …

Thumbnail

15 Linux Bash History Expansion Examples You Should Know

2012/03/02

Here is a nice link on BASH History Expansion. There are lot of examples in this page and some of them might be quite useful. But here are my list of favourites: !! This is probably the most used one …

Oracle Select the top 5 queries

2012/02/27

Here are one sql script that I found some time back. This will be listing the top 5 SQL queries in Oracle.

glances – Get a glimpse of the whole system

2012/02/21

You would have used top at some point of time. Did you not wish that instead of just the processes it list all the vital statistics of the system as a whole. How good it would be to see the Memory, …

Installing Full Blin g theme on N900

2011/08/03

I was going through the post : http://talk.maemo.org/showthread.php?t=46739 and found the theme quite intruging but not complete to the point where I can download the deb file and install it in …

bash regular expressions

2011/02/06

Here are some quick links on bash regular expressions, pretty good links to bookmark, if you use, regular expressions in bash regularly. I especially like the tldp link at number 3. …

Ranking of the most frequently used commands

2011/01/31

Lets take a quick look at how to get the most frequently used commands on you shell. So what we need to do is this: […] <td> <div class="text codecolorer"> history | awk …

fork a new process in perl

2011/01/27

I was doing something today and found that I require to fork a new process in perl. Now I had never done this earlier, so I did not know how to do this. First some background : I was doing some …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it