Dear Friends, Hi (Sorry if this question is simple or duplicated)
I have two lists of IDs, list A.txt and list B.txt and B>A (A=blast results IDs and B= the IDs from the original EST database that the blast has run against it).
I want to compare them and collect the IDs that are present in the list B (bigger list) but absent in the list A (the ESTs that blast can not find any hit for them).
Please help me how to do it in linux command line (please no perl or python. thanks)
NOTE1: I usually do it as below, but I need some more strigth approach:
1- sort both lists 2- $ comm A.txt B.txt | cut –f2 > specific-to-B.txt 3- $ sed -i '/^\s*$/d' specific-to-B.txt (because this file contain many blank lines) 4- the list is ready
NOTE2: Example of list is as :