O'Reilly logo

Linux Shell Scripting Essentials by Sinny Kumari

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

Summary

After reading this chapter, you should now be confident enough to write an effective shell script by using conditional statements, loops, and so on. Now, you can also write a modular and reusable code using the function in shell. Having the knowledge of exit code will help in knowing whether the command was executed successfully or not. You should also know a few more useful shell builtins such as alias, pushd, and popd.

In the next chapter, we will learn more about modularizing our script by knowing how to write a reusable shell script itself, which can be used in shell scripts. We will also see how we can debug our shell scripts to fix problems.

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