Functions Shell Script Tutorials, Tips & Tricks

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...

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...