MR.OMAR on January 4th, 2010

The situation is you have a number of files with sequence filenames, and you would like to rename it, for example you would like to rename from photos01a.jpg to photos01.jpg, yes, it just a simple removing the ‘a’ from it, but it would be an annoying jobs if the number of files is quite big.

Continue reading about Simple way to rename multiple files

MR.OMAR on January 4th, 2010

sed stand for Stream EDitor. It is more to ascii text manipulation, but this time while it’s from the command line instead of in the text editor like vi. The replace command looks exactly as the vi editor replace command.

Continue reading about Basic sed command

MR.OMAR on January 4th, 2010

Been long time since I used this command, only today I had a chance to try it again, and to my surprise it still works ! Previously I use this under SUN Solaris unix, it still works when I tested it on FreeBSD 5.x.

Continue reading about Modify and execute previous command

MR.OMAR on January 4th, 2010

In windows environment you will just have to open the search window, input what you want to search/find and then click the search button. In unix/linux environment, if you’re using the X windows system, you might have that capability, but for a faster action, I always prefer the terminal/shell prompt.

Continue reading about Basic find command

MR.OMAR on January 4th, 2010

Links is a way to replicate a file and share it with other users (of course with a proper permission applied). Any changes made to any of the link files, all will be affected. This was used last time during software programming development on unix (and yes that will be >10 years ago, vi is […]

Continue reading about Basic Links

MR.OMAR on January 4th, 2010

Another looping command that you can use in command prompt is while loop. Used to be my favourite while waiting for some process to finish – usage to monitor that on-going process, as I hate waiting without knowing whats going on – eg. how much records has been transferred etc. etc.

Continue reading about The while loop

MR.OMAR on January 4th, 2010

awk is quite useful when you need to filter your output. As a start I will demonstrate a simple usage of awk.

Continue reading about Getting to know awk

MR.OMAR on January 4th, 2010

Tar command is known for backup, and most commonly to tapes. Besides that it is also known to the open-source community as a way to package files and distribute as one single file for easier transfer method. In this small section we will try to show you the most out of tar command. We will not be covering the details usage or options available in tar command as the information is already available in the “man tar” output.

Continue reading about Shell prompt: Make full use of tar command