Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: nezabudka
1,815
Posted By nezabudka
cat pattern.txt chr1 1000 2000 chr1 ...
cat pattern.txt
chr1 1000 2000 chr1 10000 11000
chr1 1000 2000 chr1 11000 12000
chr1 1000 2000 chr1 12000 13000
cat DB_file.txt
chr1 1000 ...
1,815
Posted By nezabudka
Hi try this awk ' NR == FNR ...
Hi
try this
awk '
NR == FNR {A[$1$2$3$4$5$6]; next}
$1$2$3$4$5$6 in A
' pattern.txt DB_file.txt

--- Post updated at 12:41 ---

in the same format pattern and db
awk '
NR == FNR ...
Showing results 1 to 2 of 2

 

Featured Tech Videos

All times are GMT -4. The time now is 08:20 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy