Functions In Bash

Can be created two ways

funtion name {
    commands
    return
}
# Simpler and generally preferred form
name () {
    commands
    return
}
  • Make excellent replacements for aliases