Our Sponsors



Download BioinformaticsOnline(BOL) Apps in your chrome browser.




Extract the values using ids !

#Awk script awk 'NR==FNR{tgts[$1]; next} $1 in tgts' file1 file2 Look: $ cat file1 11002 10995 48981 79600 $ cat file2 10993 item 0 11002 item 6 10995 item 7 79600 item 7 439481 item 5 272557 item 7 224325 item 7 84156 item 6 572546 item 7 693661 item 7 $ awk 'NR==FNR{tgts[$1]; next} $1 in tgts' file1 file2 11002 item 6 10995 item 7 79600 item 7

Comments