A simple bash function to display a poem. Pull the function from the .cfg into your .bash_profile by adding this line to your bash profile: . ~/.haiku.cfg Poems are to be stored in a textfile with one line per poem. A forward slash indicated a new line e.g. This is line 1 of the first poem / This is line 2 of the first poem This is line 1 of the second poem / This is line 2 of the second poem The bash function grabs a random poem and echoes it out line-by-line. The function is called 'printhaiku', it takes one parameter: the poem file. In my .bash_profile I have put the following line to display a poem every time I open a new shell: printhaiku ~/haiku.txt I've added an example poem file.