On Tue, Oct 21, 2008 at 7:59 AM, Bruce Dawson <[EMAIL PROTECTED]> wrote: > I believe 'comm -12 file1 file2' will come close to giving you an > intersection of two [sorted] files.
"close"? :) The man page seems to indicate that's exactly what it will do. Assuming it works as advertised, I think this would be a shorter way to do what Bill's script (useful idea!) does: comm -12 <( package-cleanup --orphans | sort ) <( package-cleanup --leaves --all | sort ) Both seem to produce similar output on my FC8 home PC. The above makes use of a shell trick I learned about not long ago, via this list. And a shell utility I learned about just now, of course. And Bill's original concept. Thanks, Bill, Bruce, <whoever posted trick>. -- Ben _______________________________________________ gnhlug-discuss mailing list [email protected] http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
