9 | ||(or) 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 ||(or operator) in a shell script. It is really easy to use and understand this operator.

Just remember statement becomes true if at least one of the conditions is true.

Example: c1 || c2 || c3 || c4 : atleast one of the c1,c2, c3 or c4 must be true for the statement to be true.



Leave a Reply

Your email address will not be published. Required fields are marked *