title: How to test if a named pipe exists?
body: <p>In order to test if a file exists I do:</p>
  
  <pre><code>if [ -f $FILE ];
  </code></pre>
  
  <p>but it doesn't work if $FILE is a named pipe, 
  e.g. <code>ls -l pipename</code> shows a pipe with <strong>p</strong> attribute:</p>
  
  <pre><code>prw-r--r-- 1 usr grp 0 Nov 26 02:22 pipename
  </code></pre>
  
  <p>How to test if a named pipe exists?</p>