title: How to format the output of ls?
body: <p>I would like to output all headers in a directory. There is one entry per line and each line should begin with four whitespaces and should end with a whitespace and a '\' character. </p>
  
  <pre><code>____header1.h_\
  ____header2.h_\
  ____header3.h_\
  </code></pre>
  
  <p>I already figured out how to make the output one entry per line.</p>
  
  <pre><code>ls -1 *.h
  </code></pre>
  
  <p>But I do not know how to do the formatting. Where should I look to learn more complicated formatting?</p>
  
  <p>EDIT:</p>
  
  <p>All the scripts in all the answers produce the desired output. I wish I could accept all answers.</p>