- Wednesday, August 5, 2009, 14:58
- General
- 1,573 views
RANDOM is a peculiar shell variable, but useful nonetheless. Peculiar because its value changes each time it is referenced (yes, this is by design).
As you may have already guessed, RANDOM is a random number generator. The number generated is an integer between 0 and 32767, and can come in handy when writing shell scripts. ...
Full story
- Thursday, July 9, 2009, 15:27
- General
- 5,139 views
Have you ever written a huge Unix script and thought you would have divided this script into pieces of reusable code? Well don't worry. You can create functions in unix shell script and make reusable code and call the function from your unix code.
Hello World Function in Unix shell script
First let us see a simple ...
Full story