How to filter the contents of two text files ..
Dan Nelson
dnelson at allantgroup.com
Mon Aug 7 20:13:14 UTC 2006
In the last episode (Aug 07), Odhiambo Washington said:
> Some little help is needed here ...
>
> I have two text files, each has just a single column of data
>
> FileA has 2798 entries, while FileB has 4242 entries; There are
> entries in FileA that are also in FileB...
>
> I'd like to filter against the two files, so I only get those entries
> in FileB that don't occur only in FileA ....
If your files are sorted, you can use the 'comm' command.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-questions
mailing list