<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I'd be tempted to use diff.  Try either man diff or info diff to learn how best to use it.</div><div>DaveG</div><div><br></div><div><br></div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">>Message: 1<br>>Date: Sun, 04 May 2014 13:28:32 +0100<br>>From: Mark Fraser <<a href="mailto:mfraz74%2Bubuntu@gmail.com">mfraz74+ubuntu@gmail.com</a>><br>
>To: <a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a><br>>Subject: [ubuntu-uk] Comparing installed packages<br>>Message-ID: <1557956.Qkuynz4i5L@rachael><br>>Content-Type: text/plain; charset="us-ascii"<br>

<br>>I've got 4 computers here that I would like to compare the installed >packages<br>>on each one together. I've done dpkg --get-selection > installed.txt on >each<br>>computer, but now I'm trying to merge each one into a single file and >leave a<br>
>space where a package isn't installed.<br>
<br>>Instead of:<br>>Acpi-support     acpi-support   Acpi-support            acpi-support<br>>adduser             acroread            adduser                         adduser<br>>Adobereader-enu acroread-bin    adobereader-enu adobereader-enu<br>

><br>
><br>>I'd like:<br>>Acpi-support     acpi-support   Acpi-support            acpi-support<br>>                                         acroread<br>  >                                        acroread-bin<br>
>adduser                                                         adduser                         >adduser<br>>Adobereader-enu                                 adobereader-enu adobereader->enu<br>
<br>>Any ideas how to achieve this?<br><br></blockquote></div></div></div>