title: Use output of two greps with diff
body: <p>How do I make better the following method of comparing certain lines (lines that start with "@") of two files? I feel certain this could be done on one line and without embarrassing temporary files. I am pretty new to Linux so go easy on me! Thanks in advance.</p>
  
  <pre><code>grep "^@" myfile1 &gt; temp1
  grep "^@" myfile2 &gt; temp2
  diff temp1 temp2
  </code></pre>