Linux Shell Programming 2



Linux Shell Programming 2

Linux Shell Programming 2

if statements

This video is an introduction to linux shell scripting. This video demonstrates how to use conditional statements using the if syntax to test conditons and act according to the results.

Just not that that if statements structure is like this:

#notice the spaces between the braces and the conditon
if [ condition ] ; then
condition1
else
condition2
fi

Shell scripting provides for automation of tasks and is a powerful way to get recurrent task done efficently.

Comments are closed.