Archive for August, 2009

Want An OS X Dock On Your Linux Box?

If you are an Linux user and want your desktop looking more like Apple OS X, this post is for you. One of the cool things that Apple’s OS X operating system includes is the dock down at the bottom of the main desktop window. This makes your commonly-used programs easy to get to without having to go through a process of searching for them.

With this in mind, there is an application that you can install on your Linux box that acts a dock for you. This application is called KDocker.

(more…)

Want To Do a Quick Find/Replace? Use ’sed’!

If you are ever need to do just a quick and simple find and replace and don’t want to do it in an editor? You can use the sed command.

If you are familiar with vi, the find and replace string will be very familiar. The format of the find and replace is:

sed 's/oldstring/newstring/g' file.txt

However, if you are wanting these changes to be reflected in a file, you will need to perform an output at the end of your sed string, like so:

sed 's/oldstring/newstring/g' file.txt
> changedfile.txt

I have provided an example of how to use the principles below: