regular expression, sed and grep tuturials and tricks.

Simply a great one page article on sed and use of regular expressions.

Enhance photos quickly with GIMP

Okay today I will show you how to enhance or make the photo look better with GIMP. Digital photos are good but can be made better with GIMP. I will take you step by step with the process. There are many other things that you can do but I will cover only basic stuff. So here we go.

Take a photo of your choice.


Before we begin, if you like you can crop the image to the size of your wish 🙂

Now we will first adjust the level of the photograph. Right click on the photo and click on color and select Level. Once there you can click on Auto to automatically adjust the level. If you are not satisfied click on cancel and make the changes to suit your needs.


As you can see that this step will make some good changes to your photo.

Now we will adjust the Curves to make the photo look even better and bring out the subject of our photo. To do so, right click on photo, select color and then click on curves. Make the changes as required. You may have to experiment a little to make sure your photo looks good.


The next step is generally not required if the photo is already of good quality, but it always good to do some blurring. So go to filters and select blur and then Gaussian blur. Select the radius to 5 to begin with, if you have no idea what this is. You can experiment with a few values to get good results.


So, now we are nearly done, just adjust the contrast and you are done. And you know how to do that by now. Right click on image, select colors and then Contrast.


You can do some funky things also with the photograph. Like with some modifications in the color adjustment, I got this result.


Or apply a filter  to get some cool effects like old photo effect (one of my favourites).


Hope you guys enjoyed it. Do leave a comment to let me know your thougts.

Using tput to save, clear and restore the terminal contents

Using tput to save, clear and restore the terminal contents $ tput smcup; echo \”Doing some things…\”; sleep 2; tput rmcup Very useful for interactive scripts where you would like to return the terminal contents to its original state before the script was run. This would be similar to how vi exits and returns you to your original terminal screen.

Save and clear the terminal contents with:

tput smcup

Execute some commands, then restore the saved terminal contents with:

tput rmcup * View this command to comment, vote or add to favourites * View all commands by jgc

by David Winterbottom (