October 2008

Bash For Loop Examples

by Vivek Gite on October 31, 2008 · 202 comments

How do I use bash for loop to repeat certain task under Linux / UNIX operating system? How do I set infinite loops using for statement? How do I use three-parameter for loop control expression?

{ 202 comments }

Q. How do I upgrade my server system from Ubuntu hardy heron version 8.04 to Ubuntu Linux server 8.10 Intrepid Ibex over ssh session?

{ 8 comments }

Q. How do I upgrade my desktop computer from Ubuntu hardy heron version 8.04 to Ubuntu Linux 8.10 Intrepid Ibex?

{ 2 comments }

PHP Find / Extract Substrings

by Vivek Gite on October 25, 2008 · 0 comments

Q. How do I find out if a string stored in a variable contains a particular substring using PHP? How do I find out (extract) first 5 character of a particular string using Apache and PHP?

{ 0 comments }

Q. How do I copy output of command to Linux Gnome clipboard? How do I send files directly to X Windows clipboard from a shell prompt? How do I insert command line output or files contains into the clipboard?

{ 4 comments }

Q. How do I render font smoothly in Ubuntu Linux / Gnome desktop systems? How do I get look a likes of the Microsoft / Mac OS X smooth fonts for Firefox and other applications?

{ 10 comments }

Linux / UNIX Shell: Sort Date

by Vivek Gite on October 23, 2008 · 8 comments

Q. How do I sort date type of data stored in a text file which is in following sample format:

Code         Date          TIME
HOS05	23/12/2008	10AM
HOS06	15/12/2008	2PM
HOS62	29/12/2008	10AM
HOS64	23/12/2008	2PM
HOS70	26/12/2008	10AM
ZFT01	06/12/2008	10AM
HOS73	11/12/2008	2PM
MHOS051	05/12/2008	10AM
MHOS041	20/12/2008	2PM
MHOS042	27/12/2008	2PM
MHOS053	11/12/2008	10AM
MHOS043	30/12/2008	2PM

How do I sort data date and time wise?

{ 8 comments }