Why Do We Need Scripts?

Learn how scripts are helpful.

We learned how to write complex Bash commands using pipelines and logical operators. The pipeline combines several commands into one. We get a linear sequence algorithm this way. If we add logical operators there, we get the conditional algorithm. These operators allow us to handle special cases and choose a proper reaction for them.

The shell command that implements the conditional algorithm can be as complicated as a real program. What’s the difference between them? Why do we need scripts that are Bash programs? Let’s figure out answers to these questions.

The Educative platform provides the source code editor. However, if we want to work locally, we can study this chapter to learn how to install and work with a code editor.

Get hands-on with 1200+ tech skills courses.