title: How to print the first line of multiple files?
body: <p>I am on Mac Os 10.14.6 and have a directory that contains hundreds of text files.</p>
  <p>In the terminal, I would like to display a list of the first line of every file. How can I do this?</p>
  <hr>
  <hr>
  <p><strong>Steps I have tried</strong></p>
  <p>Googling around, I think the solution is to use a command called <code>head</code>. This is the command I have tried:
  <code>head -n 1 *</code></p>
  <p>However, it produces output like this:</p>
  <pre><code>==&gt; Minutes.txt &lt;==
  Minutes of the meeting
  
  ==&gt; Daily Report.txt &lt;==
  Daily Report for Feb
  
  ==&gt; Important incidents.txt &lt;==
  Incidents that happened yesterday
  </code></pre>
  <p>I don’t want the <code>File 1.text</code> headings. I just want it to be a list like this:</p>
  <pre><code>Minutes of the meeting
  Daily Report for Feb
  Incidents that happened yesterday
  </code></pre>
  <p>According to <a href="https://www.computerhope.com/unix/uhead.htm" rel="nofollow noreferrer">this page</a>, you can use any one of the following commands to remove the headers:</p>
  <pre><code>-q, --quiet, --silent
  </code></pre>
  <p>So I revised my command as follows:</p>
  <pre><code>head -n1 -q *
  </code></pre>
  <p>But it produces the following error message:</p>
  <pre><code>head: illegal option -- q
  usage: head [-n lines | -c bytes] [file ...]
  </code></pre>
  <p>How can I  display a list of the first line of every file without the header. The solution doesn't have to use <code>head</code> although from my research, that seems to be the best approach.</p>