Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. awk 'NR==FNR {a[$1]; next} $1 in a{print}' inputfile1.txt inputfile2.gen.gz >output.txt
  2.  
  3. zcat inputfile2.gz | awk 'NR==FNR {a[$1]; next} $1 in a{print}' inputfile1.txt inputfile2.gen.gz >output.txt
  4.  
  5. zcat inputfile2.gz |
  6. awk 'NR==FNR {a[$1]; next}
  7. $1 in a' inputfile1.txt - >output.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement