scripting gurus :-)
Cameron Hutchison
lists at xdna.net
Thu Jun 5 21:18:08 UTC 2008
Mike Bird <mgb-ubuntu at yosemite.net> writes:
>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)
comm -1 -3 <(sort -u A) <(sort -u B)
.
More information about the ubuntu-users
mailing list