#! /bin/bash # # path - this script prints out your PATH environment variable with one # directory per line using a function called path # # Here is an example of a function (must be defined before being called). # Note that there is no reason that this should be a function here. # (originally this was a function declared in my .bashrc) function path { echo -e ${PATH//:/'\n'} } echo "Here is your path" path # calling the path function