• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Urban Penguin

The Urban Penguin - Linux Training

  • Home
  • About
  • Live Online Courses
  • Shop
  • Programming
    • Master Editing Text Files Using VIM
    • Learn Shell Scripting with BASH
    • PERL Scripting in Linux
    • Ruby Scripting in Linux
    • Scripting with PowerShell
    • Learn C Programming using Linux and the Raspberry Pi
    • General Java Tutorials
    • Java 7 OCA Exam 1ZO-803
  • OS Tutorials
    • Red Hat and CentOS Training
      • Red Hat Enterprise Linux System Administration 1 – RH124
      • RHCSA – System Admin 2 – RH134
      • RHCE – EX294 – Automation With Ansible
    • Learning Ubuntu
    • LPI Training
      • LPI Linux Essentials
      • LPIC-1 Linux Administrator
      • LPIC-2 Certified Linux Engineer
      • LPIC-3 Senior Level Certification
        • LPIC-3 Exam 300 : Mixed Environments
        • LPIC-3 Exam 303 : Security
        • LPIC-3 Exam 304 : Virtualization and High Availability
    • Linux Technologies
      • Apache HTTPD Server
      • Learning PHP
      • Learning PUPPET
      • Learning SAMBA
      • Linux File-Systems
      • Monitoring with Nagios Core
      • MYSQL
      • openLDAP Directories on Linux
You are here: Home / Scripting – the power of repetition! / Learn Shell Scripting with BASH

Learn Shell Scripting with BASH

shell scripting with bashBeginning Programming by Shell Scripting with BASH

Welcome to this mini-series of video tutorials where we look to assist you in shell scripting using the BASH shell. Shell Scripting of any variety is often the first journey in becoming a programmer. Starting with BASH shell scripts you can quickly move onto other scripting languages such as Python or Perl before moving into Java or C.

Firstly we will start with the basics of creating and debugging scripts before moving onto  IF statements, CASE statements, flow control with loops and all that you may want to do to get started with scripting with /bin/bash. Fearing the shell is not something you should ever concern yourself with so if you do not understand some of these terms right now you will later. For the moment all that we would expect is that you can access the command line on Linux and know some basic commands.

Video lessons

  1. Creating, executing and debugging BASH scripts: Learn the basic of shell scripting by creating your own script and learn where they should be located.
  2. Using snippet libraries with vi and mapping keys to actions: Using code snippets is a great time saver when writing BASH or any type of script.
  3. Simple If Statement: Learn how to create a simple conditional statement in BASH.
  4. Using if, elif and else statements: Conditional statements can be extended beyond the basic If statement.
  5. Using Script Arguments: Script arguments allow you to modify your program on the fly.
  6. Gather User Input in Scripts: Learn ways to collect input from your users as the script executes.
  7. Using CASE statements: Better than using elif we may find many conditions need a case statement.
  8. Looping with WHILE: Looping allows us to repeat commands.
  9. Looping with UNTIL: Looping with until.
  10. Using FOR loops: More looping structure using FOR.
  11. Using traps and interrupts: Ctrl+c is a signal that we can send to scripts. Maybe we want to trap this signal and control how it is used.
  12. Brighten your output with a little color: Color makes everything better.
  13. Reading CSV files: Reading data from CSV files and making it display well.
  14. A better lastlog format: Providing a better output to standard commands.
  15. Delete files once they have been read: PXE boot servers are great but see how we can make them better with scripts.
  16. Command line menus: Operators often need a menu of commands they can run.

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to print (Opens in new window)

Primary Sidebar

Newest Video

The Urban Penguin On Youtube

Categories

Pages

  • About The Urban Penguin
  • Contact Us
  • Shop
    • Basket
    • Checkout
    • My Account
  • LPI Training from The Urban Penguin
    • Live and Pluralsight hosted courses
    • Complete Linux Essentials
    • LPIC-3 Senior Level Certification
      • LPIC-3 Exam 300 : Mixed Environments
      • LPIC-3 Exam 303 : Security
      • LPIC-3 Exam 304 : Virtualization and High Availability
    • LPIC-2 Certified Linux Engineer
    • LPIC-1 Linux Administrator
    • LPI Linux Essentials for Raspberry Pi
    • LPI Linux Essentials
  • Operating System Tutorials
    • Linux Foundation Training
    • Solaris 11 OCA 1ZO-821
    • Learning Ubuntu
    • Learning SUSE
    • Red Hat and CentOS Training
      • RHCE – EX294 – Automation With Ansible
      • RHCSA – System Admin 1 – RH124
      • RHCSA – System Admin 2 – RH134
  • Scripting – the power of repetition!
    • Java 7 OCA Exam 1ZO-803
    • General Java Tutorials
    • Learn C Programming using Linux and the Raspberry Pi
    • Ruby Scripting in Linux
    • Scripting with PowerShell
    • PERL Scripting in Linux
    • Learn Shell Scripting with BASH
    • Master Editing Text Files Using VIM
  • Linux Technologies
    • Learning PUPPET
    • openLDAP Directories on Linux
    • Monitoring with Nagios Core
    • Linux File-Systems
    • Learning SAMBA
    • Apache HTTPD Server
    • Learning PHP
    • MYSQL
  • OpenStack
    • Pluralsight
    • Udemy
    • Raspberry Pi Tutorials
    • Citrix Videos
  • Online Instructor-led Courses
    • Red Hat Enterprise Linux System Administration 1 – RH124
    • SELinux Masterclass
    • Bash Scripting Masterclass
    • Nftables Masterclass

© 2021 The Urban Penguin · All Rights Reserved