[lug] parsing between two lists

qqq1one @yahoo.com qqq1one at yahoo.com
Tue Mar 26 22:33:51 MST 2002


If, using "sdiff fileA fileB", I get a listing that looks like this:

    alien         alien
    allegro     | alsa-lib-devel
    alsaplayer  | Alsa-sound-mini-HOWTO
    alsa-utils    alsa-utils
    etc...

...but I would rather have a list that shows what's in fileA that's not
in fileB:

    allegro
    alsaplayer
    etc...

and another list that shows what's in fileB that's not in fileA:

    alsa-lib-devel
    Alsa-sound-mini-HOWTO
    etc...

and perhaps even another list that shows what is common between listA
and listB:

    alien
    alsa-utils
    etc...

is there a way to do this using sdiff?  Or perhaps a grep embedded in
some script?  Or is there yet another approach altogether that would
work better?

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/



More information about the LUG mailing list