Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Advanced Bash Automation for Web Developers

via egghead.io

Overview

Bash makes automation easy. Just a few lines of code can take care of repetitive tasks for you and your teammates.
In this course, we’ll dive deep into the automation potential of bash. You’ll learn to leverage common hooks that open up interesting automation possibilities, like git hooks, adding functions and aliases in your bash_profile, and running scheduled jobs in launchd.
For example, we’ll write a git hook that checks package.json for changes, and if there are changes, the hook runs npm install for you automatically.
Along the way, you’ll also learn:
more advanced bash commands like exec
syntax such as redirecting stdout and stderr to the same destination
timesaving tricks like brace expansions
Automation is all about saving you time — and at only 52 minutes, this course is well worth yours. Enjoy!

Syllabus

  • Course Overview: Advanced Bash Automation for Web Developers
  • Create Aliases in .bash_profile for Common Bash Commands
  • Add Executable Files to $PATH with Bash
  • Create and Copy Multiple Files with Brace Expansions in Bash
  • Rerun Bash Commands with History Expansions
  • Set Default Arguments with Bash Shell Parameter Expansions
  • Use Bash Keyboard Shortcuts
  • Read and Use JSON in Bash with jq
  • Use jq and grep to Find Unused Dependencies in a Project
  • Understand how to Redirect stdin, stdout, and stderr in Bash
  • Use exec to Redirect stdio in a git Hook Script
  • Use case for Complicated Conditional Statements in Bash
  • Create a Bash Script that Accepts Named Options with getopts
  • Create a Bash Script to Open a Pull Request on Github using getopts
  • Send and Receive Data from a Node.js Script in Bash using the Process Object
  • Transform Piped Data from Bash using a Node.js Transform Stream
  • Schedule Timed Jobs on macOS with `launchd`

Taught by

Cameron Nokes

Reviews

4.4 rating at egghead.io based on 172 ratings

Start your review of Advanced Bash Automation for Web Developers

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.