paste command on to different line number files
<p>If I have two files with different line numbers, I only want to output the same lines and omit the excess lines in the larger file. </p>

<p>What paste command should I wrote?</p>

<p>I tried:</p>

<pre><code>paste -d: file1 file2|awk  -F ':'  '{print $1,$7}'
</code></pre>

<p>But it did not work.</p>