On 09/15/2017 08:13 AM, [email protected] wrote:
Hi,
I have two files(file 1 file2), each contains one word in ecah line.
I am trying to get the words in file2 that are not in file1. saving result in file3
I need equivelant awk command to the following grep
grep -F -x -v -f file2 file1 > file3
grep takes time and is beeing killed because file2 is about 40000 long ,and file1 is about 25000

if I would do c program, It would have two nested for that will take time too.

please I will appriciate any suggestions.


From the description you have provided I would first try the Unix command-line program 'comm'.

Try 'man comm' and look in particular at the '-3' option.

Thank you very much.
Jim Keenan

--
You received this message because you are subscribed to the Google Groups "ack 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ack-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to