bash
concatenate compressed and uncompressed logs
2010/06/21
$ find /var/log/apache2 -name 'access.loggz' -exec <a class="zem_slink freebase/en/gzip" title="Gzip" rel="homepage" href="http://www.gzip.org/">zcat {} ; …
Linux command to repeat a string n times
2010/06/17
There are more than one situation where you wished that there was a simple way to print a character n number of times. At least I face that quite often, especially when you want to print a menu. I …
Change pidgin status from the command line
2010/06/16
$ purple-remote "setstatus?status=away&message=AFK" Thanks for the comment oshazard, i wasn’t aware of purple-remote existence. […] <a …
List of commands you use most often
2010/06/16
$ history | <a class="zem_slink freebase/en/awk" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk …
email with templates (with variables) from the command line with sendmail or any other MTA.
2010/06/09
I was trying to get templates to work on evolution and found that although templates are there in evolution mail client, its not that efficient to use. What I thus wanted was to have something that …
Biggest free shell account list
2010/06/09
Biggest shell account list is <a href="http://www.red-pill.eu/freeunix.shtml" target="_blank">here.
Verify all the paths in the PATH directory
2010/06/08
Here is the command to test that all the directories in your path actually exist. […] (<a class="zem_slink freebase/en/internal_field_separator" title="Internal field …
bash completion not working on Fedora
2010/06/06
I had bash completion installed and after that I had made huge changes to my bashrc and also installed bashstyle. After this the bash-completion stopped working. I had to spend a lot of time to figure …
colors in bash – script to display all the possible colors.
2010/06/06
If you wanted to have colors in the bash output (including the colors in PS1-4), don’t you keep wondering how the color code would look on the terminal. So, I wrote this small script to show …
let a cow tell you your fortune
2010/06/03
let a cow tell you your fortune […] <td> <div class="text codecolorer"> $ fortune | <a class="zem_slink freebase/en/cowsay" title="Cowsay" …
Google\’s RE2 regular expression library
2010/05/30
? <a class="zem_slink freebase/en/google" title="Google" rel="homepage" href="http://google.com">Google has announced the release of its RE2 library under …
prints line numbers
2010/05/27
$ nl others: perl -ne ’print ”$. – $_”’ $1 grep -n . $1 perl -pe ’print ”$. ”’ $1 cat -n $1 […] <a …