Posts Tagged ‘Functions Shell Script’

Generate Random Number in UNIX Shell Script

Generate Random Number in UNIX Shell Script
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

Writing Functions in Shell Script

Writing Functions in Shell Script
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
Copyright © 2010 ViralPatel.net. All rights reserved.