Email us any time and from anywhere to enquire about our online training Programs at Grras Solutions
online@grras.com To know more about Redhat Online training Program, feel free to call us on our helpline number + 91 9001997176
+91-900-199-7175, +91-900-199-7176
HOME COURSES SHELL SCRIPTING
About the Course

This course gives an introduction to the writing of Shell scripts using the shells and to the more advanced features of UNIX/LINUX including the batch editor sed and the text file processing language awk. The course takes the format of a workshop, with a mix of lecture, working examples and practical exercises. Programmers, administrators and support personnel who need to understand existing shell scripts, automate procedures and write their own utilities. The UNIX/LINUX Shell Programming course assumes knowledge of the UNIX/LINUX Operating System to the level covered in the Introduction to UNIX/LINUX Course. Some programming experience may also prove advantageous.

Drop Us a Query

Overview - Shell Scripting

    Shell scripting is a powerful, flexible, and portable technique for automating the execution of multiple data processing steps. Shell scripts can be used on any operating system and with almost any software.‚Äč Scripts are files that contain shell commands which may be short or can be very complex. Scripts just make it easier because you can invoke one command to run all of the commands in the script. Here instead of using 8 separate commands you can use one command to execute all of them.knowing about shell scripting is a must for any advanced linux administrator or engineer. In this course, you will take your first steps towards unleashing the power of shell scripting with bash through lectures and hands-on labs. Once you have been introduced to shell scripting, you will begin to see the possibilities it can unlock in your own enterprise.during this course, you will learn how to complete the following tasks:

      • Establish and understand scripting environments
      • Identify and set elemental scripting components
      • Manipulate the execution of scripts

Course Content - Shell Scripting

Basic Shell Programming

  1. Scripting conventions
  2. The shebang
  3. Execution permissions
  4. Using source for script execution
  5. Creating (& removing) shell functions
  6. Using positional parameters
  7. Changing the Internal Field Separator (IFS)
  8. Declaring and using local variables (limited scope)
  9. Shell string operators
  10. Shell pattern matching
  11. Command substitution
  12. Returning values from functions
  13. Understanding BASH return codes

Flow Control

  1. test statement & it`s equivalents
  2. test combinational logic
  3. file tests
  4. string tests
  5. numeric tests

Decision making in BASH

  1. if/else statements
  2. for statement
  3. case statement
  4. select statement
  5. while & until statements

Command-Line Options and Variable Typing

  1. getopts to parse arguments
  2. shift to iterate through arguments
  3. declare to type variables
  4. performing shell math
  5. working with integer variables

Arithmetic Shortcuts

  1. arithmetic for loops
  2. working with shell arrays

Input/Output Command-Line Processing

  1. Using labels to store data
  2. Using echo & read commands
  3. Using printf
  4. Reading information from files
  5. Using command, builtin & enable

Process Handling

  1. Process ID`s & Job numbers
  2. Foreground and background processes
  3. Signal handling
  4. using traps to catch signals

Implementing Simple Menus with select Dialog Boxes with dialog

  1. Yes/No Box(yesno)
  2. Message Box(msgbox)
  3. Input Box(input box)
  4. Text Box(text box)
  5. Menu Box(menu)
  6. Check List Box(checklist)
  7. Radio List Box(radiolist)
  8. progress Meter Box(gauge)

Graphical Boxes with Zenity

  1. Yes/No Box(yesno)
  2. Message Box(msgbox)
  3. Input Box(input box)
  4. Text Box(text box)
  5. Menu Box(menu)
  6. Check List Box(checklist)
  7. Radio List Box(radiolist)
Pre Requisites

Basic knowledge of computer programming and the Unix command line.

Ideally, attendees will have previously attended the Introduction to Research Computing workshop, Parallel Computing Boot Camp, or Parallel Programming workshop.

Required Exam

Shell Scripting

Duration

  •  
  • Duration
  • Regular Track
  • 3 weeks
  • Fast Track
  • 1 week
  •  
Course Reviews
  • Kunal Chawla

    The IT trainers are very good and the staff supports you all the through your course. I studied Redhat to formalise and further develop my knowledge as a step towards finding a great job.