#!/bin/bash updatedb locate *.mp3 > mp3search.log echo '\n This line should appear before the locate result in the email' | cat mp3search.log | mail -s "global mp3 search result" user@host.tld rm mp3search.log echo DONE!