7. Shell Scripts

note

teaching: 30 minutes

exercises: 15 minutes

questions:

  • How can I save and re-use commands?

objectives:

  • Write a shell script that runs a command or series of commands for a fixed set of files.
  • Run a shell script from the command line.
  • Write a shell script that operates on a set of files defined by the user on the command line.
  • Create pipelines that include shell scripts you, and others, have written.