8 | &&(and) operator

Shell Scripting Tutorial

Hello Programmers, I’m Yash. Sole programmer at planetvearcity – a place where programmers come to learn, build, and grow.

Welcome to the tutorial series on shell scripting. In this video, we will learn how to use &&(and operator) in shell script. It is really easy to use and understand this operator.

Just remember statement becomes true only if all the conditions are true otherwise it will be false.

Example: c1 && c2 && c3 && c4 : all c1, c2, c3 and c4 must be true for the statement to be true.