Similar to for loop, while loop is also entry restricted loop. It means condition is checked before executing while loop. Mostly it also can do all the works which for loop can do but in uses it has own benefit of use in programming. Syntax: while [ condition ] do // programme to execute...
What is function: A function which can also be referred to as subroutine, procedure is a block of code used for specific tasks. Function’s also have a property called reusability. This tutorial will help you to how to create and use functions in shell scripts. Create First Function in Shell Script Create your first...
How to Debug a Shell Script ?? We can debug shell script by using “set -xv” command inside shell script or using -xv on command line while executing script. Debug Shell Script by adding Command : $ cat checkdebug.sh #!/bin/bash set -xv #