Videos

Shell Scripting Tutorial

2 months ago
For more detailed Tutorial visit – goo.gl/bbvi0C A shell script is a computer program designed to be run by the Unix shell, a command-line interpreter. The various dialects of shell scripts are considered to be scripting languages. A shell usually interprets a single line of input, but we can also create a file containing a […]

Shell Scripting Tutorial for Beginners 28 – How to debug a bash script

4 months ago
sh -x script [arg1 …] bash -x script [arg1 …] These give you a trace of what is being executed. Using the set Bash built-in you can run in normal mode those portions of the script of which you are sure they are without fault, and display debugging information only for troublesome zones. Say we […]

Shell Scripting Tutorial for Beginners 27 – Signals and Traps

4 months ago
The trap command provides the script to captures an interrupt (signal) and then clean it up within the script. First the signals described in the original POSIX.1-1990 standard. Signal Value Action Comment ——————————————————————————————- SIGHUP 1 Term Hangup detected on controlling terminal or death of controlling process SIGINT 2 Term Interrupt from keyboard SIGQUIT 3 Core […]

Shell Scripting Tutorial for Beginners 26 – Readonly command

4 months ago
readonly command can be used to to make you variables and functions read only that means you cannot change the value of variables or you can not overwrite a function. ————————-Follow——————- My Website – www.codebind.com My Blog – goo.gl/Nd2pFn My Facebook Page – goo.gl/eLp2cQ Google+ – goo.gl/lvC5FX Twitter – twitter.com/ProgrammingKnow Pinterest – goo.gl/kCInUp Text Case […]

Shell Scripting Tutorial for Beginners 25 – Function Example

4 months ago
In this video we will create an example. This example shell script will demonstrate the concept of Bash shell functions. we will show to check if a file exists or not using function. ————————-Follow——————- My Website – www.codebind.com My Blog – goo.gl/Nd2pFn My Facebook Page – goo.gl/eLp2cQ Google+ – goo.gl/lvC5FX Twitter – twitter.com/ProgrammingKnow Pinterest – […]

Shell Scripting Tutorial for Beginners 24 – Local variables

4 months ago
LOCAL VARIABLES IN FUNCTIONS : Variables defined within functions are global, i.e. their values are known throughout the entire shell program keyword “local” inside a function definition makes referenced variables “local” to that function. Local variables can be created by using the keyword local. ————————-Follow——————- My Website – www.codebind.com My Blog – goo.gl/Nd2pFn My Facebook […]

Shell Scripting Tutorial for Beginners 23 – Functions

4 months ago
Functions : Functions make scripts easier to maintain. Basically it breaks up the program into smaller pieces. A function performs an action defined by you, and it can return a value if you wish. ————————-Follow——————- My Website – www.codebind.com My Blog – goo.gl/Nd2pFn My Facebook Page – goo.gl/eLp2cQ Google+ – goo.gl/lvC5FX Twitter – twitter.com/ProgrammingKnow Pinterest […]

Shell Scripting Tutorial for Beginners 22 – Break and continue

4 months ago
The break statement is used to exit the current loop before its normal ending. The continue statement resumes iteration of an enclosing for, while, until or select loop. ————————-Follow——————- My Website – www.codebind.com My Blog – goo.gl/Nd2pFn My Facebook Page – goo.gl/eLp2cQ Google+ – goo.gl/lvC5FX Twitter – twitter.com/ProgrammingKnow Pinterest – goo.gl/kCInUp Text Case Converter – […]

Shell Scripting Tutorial for Beginners 21 – Select loop

4 months ago
SELECT COMMAND Constructs simple menu from word list. It Allows user to enter a number instead of a word. So User enters sequence number corresponding to the word. ——————————————– Syntax: select WORD in LIST do RESPECTIVE-COMMANDS done ——————————————– Loops until end of input, i.e. ^d (or ^c) ————————-Follow——————- My Website – www.codebind.com My Blog – […]

Shell Scripting Tutorial for Beginners 20 – use FOR loop to execute commands

6 months ago
FOR loop to execute commands. A list of commands is executed for each value in the list. for Loops: Sometimes we want to run a command (or group of commands) over and over. This is called iteration, repetition, or looping. The most commonly used shell repetition structure is the for loop, which has the general […]

Shell Scripting Tutorial for Beginners 19 – FOR loop

6 months ago
for Loops: Sometimes we want to run a command (or group of commands) over and over. This is called iteration, repetition, or looping. The most commonly used shell repetition structure is the for loop, which has the general form: for variable in list do command(s) done My Website – www.codebind.com My Blog – goo.gl/Nd2pFn My […]

Shell Scripting Tutorial for Beginners 18 – UNTIL loop

6 months ago
Until Statements: The until structure is very similar to the while structure. The until structure loops until the condition is true. So basically it is “until this condition is true, do this”. My Website – www.codebind.com My Blog – goo.gl/Nd2pFn My Facebook Page – goo.gl/eLp2cQ Google+ – goo.gl/lvC5FX Twitter – twitter.com/ProgrammingKnow Pinterest – goo.gl/kCInUp Text […]