Functions: Naming a Job

A function keeps a few commands under one name, so a script says the job's name instead of repeating its lines: define it with name() { }, call it by its name like any command, and hand it arguments, which it reads as $1, $# and "$@".

Updated

Cheat sheet for the lesson Functions: Naming a Job: A function keeps a few commands under one name, so a script says the job's name instead of repeating its lines: define it with name() { }, call it by its name like any command, and hand it arguments, which it reads as $1, $# and "$@".
Category
Bash
Level
Journeyman
Tags
argument, linux, positional-parameter, shell-function, shell-script, unix