title: How to flush a pipe using bash
body: <p>I have a script that writes to a named pipe and another that reads from the pipe.  Occasionally, when starting the script I have noticed that the contents of the pipe exist from a previous run of the script.  Is there a way to flush out the pipe at the beginning of the script?</p>