I have a process that filters a list of files from a directory (having find
check to see if there are files older than a certain period to show a queue is stuck). It may or may not return anything, and if it does, it is mailed to be by cron
.
What I would like to know is if there is a program or simple bash
method to pipe this output to, and if there is any output through it, prepend a header line (like "These are the files stuck in the queue").