#!/bin/bash # Prints out the time PREFIX=' ' get_time() { echo "$PREFIX$(date '+%H:%M')" } get_time