scripting gurus :-)

Mike Bird mgb-ubuntu at yosemite.net
Thu Jun 5 17:24:40 UTC 2008


On Thu June 5 2008 09:58:48 Bart Silverstrim wrote:
> Thanks for the information on reading in the lines from a file!
>
> Another item, related...
>
> If I have two files A and B with IP addresses listed in them, is there a
> way to compare them such that the end result is a text file containing
> only the IPs unique to file B?

join -v2 <(sort <A | uniq) <(sort <B | uniq)

--Mike Bird




More information about the ubuntu-users mailing list