Book Image

Linux Shell Scripting: Automating Command Line Tasks [Video]

By : Paul Olushile
Book Image

Linux Shell Scripting: Automating Command Line Tasks [Video]

By: Paul Olushile

Overview of this book

<p><span id="description" class="sugar_field">Shell scripting involves writing a series of command for the shell to execute. It combines lengthy and repetitive sequences of commands into a single script, which can be stored and executed anytime. This reduces the effort required by the end user and the number of human mistakes.</span></p> <p><span id="description" class="sugar_field">You will write your first shell script and delve into the shell, to touch the power CLI which provides against the GUI. Also you will learn simple arguments and use getopts to make it a real Shell command. Then you will learn looping and functions for performing complex operations. You will then master Regex and regular expressions to validate your arguments.&nbsp;</span>Finally, you will learn to write logs correctly and fight the temptation to use I/O redirections.</p> <p><span id="description" class="sugar_field">By the end of this course, you will be an expert at creating powerful shell scripts and will have explored the full possibilities of shells.</span></p> <h1><span class="sugar_field">Style and Approach</span></h1> <p><span class="sugar_field"><span id="trade_selling_points_c" class="sugar_field">This course starts with the simplest possible concept—listing the content of a folder—and leads you to an understanding of what a Linux OS System call is. You will see how programs interact with the OS, and what happens under the hood when you run a script of your own. You will solve tasks in the wrong way first and then learn to do so correctly, with the chance to compare using I/O redirection and the logger utility to write your own logs. The author will ask the question "What will happen?" before firing a command for a concept that has just been explained; that will be your queue to hit the Pause button and think.</span></span></p>
Table of Contents (7 chapters)
Chapter 2
Calling the Script with Parameters
Content Locked
Section 1
Variables – Passing Command-Line Arguments to a Script
This video we will understand arguments and other commands. - Work with arguments and how to declare them in scripts - Pass different commands in-builts from the shell - Look at how arguments are been declared in our scripts