Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS CompTIA Security+ Microsoft AZ-900
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Personal Development Mindfulness Personal Transformation Life Purpose Meditation CBT Emotional Intelligence
Web Development JavaScript React CSS Angular PHP Node.Js WordPress Vue JS
Google Flutter Android Development iOS Development React Native Swift Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
Microsoft Power BI SQL Tableau Business Analysis Data Modeling Business Intelligence MySQL Data Analysis Blockchain
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Business Plan Startup Online Business Freelancing Blogging Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
30-Day Money-Back Guarantee
IT & Software Other IT & Software Shell Scripting

Learn bash scripting from scratch

Learn to automate anything in Linux
Rating: 4.1 out of 54.1 (44 ratings)
6,560 students
Created by Adriano Gattabuia
Last updated 7/2018
English
English [Auto]
30-Day Money-Back Guarantee

What you'll learn

  • You will be able to write your own bash scripts to automate just about anything in Linux

Requirements

  • A PC with Linux installed either as the main OS or in a virtualized environment with VirtualBox or VMWare
  • Basic knowledge of the Linux command line, a free course is available on the Prime Radiant Security YouTube channel

Description

We'll start by setting up a very simple script, then we'll move from there and cover how to deal with variables, functions, conditional statements, loops, arrays and how to manipulate text using sed, awk and regular expressions.

Once covered the fundamentals of the bash scripting language we're going to write three scripts:

  1. A simple universal archive extractor: this script will allow us to extract any compressed archive (tar.gz, 7z, rar, zip, bz, tbz2 and more) just by typing a command. This script will contain no more than 30 lines of code.

  2. A batch renaming tool: the script is going to take the folder to process as an argument, then will batch rename all the files in the folder with a given extension. It will then rename all the files in the folder either with a sequential number or with a user supplied keyword, then a sequential number.

  3. A tool to generate automatic backups based on a schedule: this script is going to generate a tar.gz file by appending the current system date and time to the original folder name provided as an argument, we'll then proceed to use cron jobs to schedule the script execution based on our preference.

By the end of the course you will be able to write scripts on your own to automate anything in Linux.

Who this course is for:

  • Anyone who'd like to learn how to learn bash scripting to automate all sorts of tasks in Linux

Course content

4 sections • 12 lectures • 1h 58m total length

  • Preview02:45

  • Preview06:23
  • Preview08:03
  • Functions, command line and function arguments
    12:22
  • Conditional branching: the if/else and case statements
    12:52
  • The while, until and for loops
    10:07
  • Using arrays and looping through them
    10:19
  • Text manipulation with awk, sed and regular expressions
    13:59

  • Scripting a simple universal archive extractor
    06:11
  • Batch file renaming
    20:12
  • Automatic backups using cron
    13:03

  • Other references
    02:20

Instructor

Adriano Gattabuia
Security engineer, software developer
Adriano Gattabuia
  • 4.1 Instructor Rating
  • 452 Reviews
  • 11,470 Students
  • 16 Courses

Amo lo studio ed ho lavorato sia come sviluppatore software che come penetration tester negli ultimi sei anni.

Ho iniziato ad insegnare su Udemy tramite il progetto Prime Radiant Security all'inizio del 2018.

Ho divorato centinaia di videocorsi e libri per tutta la vita, sono qui a condividere un'estensione delle conoscenze nate anche da problemi risolti efficientemente nella vita reale.

Credo che la teoria e la pratica debbano essere scrupolosamente equilibrate per evitare caotici approfondimenti da una parte ed evitare la noia e la frustrazione dall'altra.

I've been studying for a lifetime and have been working as both a software developer and as a penetration tester for the past six years. 

I've started teaching through the Prime Radiant Security project at the start of 2018.

I have devoured tons of video courses and books in my life, I'm here to share an extension of the knowledge born out of real life problems I have managed to solve, in the most efficient way possible.

I believe that theory and practice should be carefully balanced in order to avoid further research to understand specific subjects on one hand and to avoid boredom or frustration on the other.

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Impressum Kontakt
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.