#!/bin/bash # Prints out the date PREFIX='' date() { echo "$PREFIX $(date '+%d-%m-%y (%a)')" } date