Search Results

Search: Posts Made By: Wan Fahmi
20,433
Posted By RudiC
uniq needs sorted input. man uniq:Unfortunately,...
uniq needs sorted input. man uniq:Unfortunately, your sample has only unique second fields so it can't be tested against. Adding a few non-unique lines, this may lead to the desired result:sort -k2...
2,054
Posted By RudiC
How about trying sth on your own? ...
How about trying sth on your own?

Nevertheless, try awk 'FNR==NR {if (/^>/) P=$0; else T[$0]=P; next} $0 in T {print T[$0]; print}' file2 file1
>ERR315352.12390252_5250 5250...
2,054
Posted By RudiC
Not sure I understand your request, and having...
Not sure I understand your request, and having two sample files that don't match doesn't help either.

Anyhow, tryawk 'FNR==NR {C[$2]=$1;next}
FNR==1 {print "Count Read...
Showing results 1 to 3 of 3

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