<p dir="ltr">Hi,</p>
<p dir="ltr">There's probably a far better way that someone with some more experience will suggest, but the first thing that came to mind is to write a little program/script that does the following:</p>
<p dir="ltr">- read all the files, into their own list of packages<br>
- combine the lists, filling a list of package names, sorted in alphabetical order and removing duplicates<br>
- iterate through the combined list, for each package check each of the four individual lists and if it is in there output it, otherwise leave a space</p>
<p dir="ltr">That should achieve it in a fairly simple way, and can be done with any language.</p>
<p dir="ltr">Best of luck,<br>
Joe</p>
<div class="gmail_quote">On 4 May 2014 13:29, "Mark Fraser" <<a href="mailto:mfraz74%2Bubuntu@gmail.com">mfraz74+ubuntu@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
Registered Linux User #466407 <a href="http://counter.li.org" target="_blank">http://counter.li.org</a><br>
<br>
--<br>
<a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk</a><br>
<a href="https://wiki.ubuntu.com/UKTeam/" target="_blank">https://wiki.ubuntu.com/UKTeam/</a><br>
</blockquote></div>