
On Mon, Nov 25, 2013, at 18:57, Andrew Greig wrote:
On Mon, 2013-11-25 at 07:54 +1100, Craig Sanders wrote:
On Sun, Nov 24, 2013 at 08:59:44PM +1100, Andrew Greig wrote:
Thanks for the reply, I found a way to create the list of software for each machine using rpm -qa and then piped to a log file. ... I used diff --normal software.log software2.log and got a difference of 1700 files, my expectation was around 100 files difference but I have to go through a few thousand to find them in an analog way.
Should I pre-sort the files alphabetically ascending before trying
Yeah, for this sort of thing, you really need to have the data sorted (by the 'sort' utility) before running it through 'diff' or 'join'. It doesn't have to be alphabetically -- it just matters that it's sorted in some sort of consistent order. I think, by default, 'sort' sorts in ASCII lexicographical order, which will be close enough to alphabetical (except capitals sort before lower-case letters). This, though, can be affected by your locale settings. -- Smiles, Les. -- Les Kitchen (LUV) ljk+luv at domain ljk.id.au via fastmail.fm