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