O'Reilly logo

SAMS Teach Yourself Unix in 10 Minutes by Robert Shimonski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using while and if

If you want to build more complex scripts, you can use other statements to control your automations. You can turn to conditional statements that allow you to activate certain sections of your script only when certain conditions apply. To use conditional statements, you need to create a condition for the statement to test. This lesson covers the basics; just be aware that this can get in-depth as there are many operators, and different items of syntax you can work with.

Hello Operator? Almost all programming languages in existence have a set of operators that perform arithmetical operations. Computers are mathematical devices, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required