1 of 16

Slide Notes

DownloadGo Live

Copia de Shell Games

No Description

PRESENTATION OUTLINE

Shell Games

Shell Scripting for Fun and Profit

Why SHELL Scripting?

The REaL Question: Why Automate?
Photo by transmediale

Why Automate?

  • reduce errors.
  • Save Time.
  • Eliminate 'Toil'.
  • ...Fun.

Shell SCRIPTING VS the World

  • *NIX-native Way to perform Actions
  • Extends Naturally from shell commands
  • 'Just Enough' Programming

Limitations

  • BASH Syntax is Kinda Garbage
  • Higher-Order Data Structures Are Cumbersome
  • painful to debug/troubleshoot
Photo by JeepersMedia

OVERALL

  • quick and dirty way to leverage unix tool philosophy
  • Not a programming replacement

The Philosophy of Unix Tools

It's  All About the Pipe

small focused tools chained together for big effect
Photo by kenmainr

EXERCISE

Swiss Army Knives VS Toolboxes
Photo by herzogbr

Swiss Army Knives VS ToolbOxes

  • At Shell prompt: info coreutils
  • /toolbox
  • on 'Opening the Software Toolbox', hit enter.

Swiss Army Knives Vs Toolboxes, cont.

  • Scroll down to Toolbox introduction
  • Read until I/O Redirection
  • Done!
  • Let's Discuss

BAsh Scripting

Is a way to use the toolbox, not build Swiss Army Knives.
Photo by TOMTEC

Foundations

Basics of Shell Scripting

  • Variables (user, environment, Built-In)
  • operators
  • Control Structures (if/THEN, While, For)
  • functions

Dassit!

But that's All You need
Photo by Kit4na