bash

Apache server stats with small and useful bash script.

2013/11/29

Just copy this script to your web-server cgi-bin directory and enjoy. The script with show the common errors like 404 Error, Internal Server Error and others. It will show the User agent distribution …

bash – using the vi mode more effectively.

2013/11/22

You can first set the bash mode to vi. This will enable some vim like features to bash. So, add this to .bashrc : set -o vi Once, you have done that then its time to get more out of the vi mode. …

bashrc with lots of functions and useful alias

2013/10/30

Here is a link of a useful 10K lines bashrc http://pastebin.com/LEkXXuST You may not want to put the whole thing, but get an idea and use what you think can be helpful to you or at-least get an idea. …

Check all vim colorschemes for minor issues

2013/10/10

Here is script that checks all the colorschemes in the current directory and corrects them if possible (Processing of the file is done with simple commands like sed, grep) Checks that the color_name …

Home grown mail scheduler with bash script and cron

2013/10/04

If you are using Linux (Fedora/Ubuntu or anything else) then you do get a lot of tools and one of them is cron. Very very useful. Just write some script that can do the task for you, put it in cron …

Delete all but some directories

2013/08/16

I think, like me, you would have faced a lot of situations, where you wanted to delete all the files or directories in a location, leaving only the required files/directories. So, I have a directory …

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 …

convert tabs to spaces, the easy way

2013/07/08

Lots of times you want to convert tabs to spaces and sometimes from a shell script, if that is the case, then simple solution is “tidy“. First you need to install tidy as follows: sudo yum install …

poor mans watch, watch for solaris

2013/01/01

Here is a simple script that you can use as watch in Solaris as well.

Disable a few cores when you want to save power.

2012/12/28

If you have a lot of CPU power and working on battery. If you do not need that much of power and would like to rather save some battery power by disabling some cpus then you can use the below script. …

quick bash script for datewise backup of directory

2012/12/12

I was working on something and the data was very critical and needed backup. I wrote a bash script to back up the data every 5 hours with cron and bash script. Thought I will share that with you. Here …

Ignore CVS and svn directories in bash autocompletion.

2012/07/07

CVS and SVN directories are something that really cause lot of un-necessary nuisance. So, simple solution just ignore them 🙂


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