Search Results

Search: Posts Made By: Ibk
3,490
Posted By Yoda
I suppose then your input is not tab delimited,...
I suppose then your input is not tab delimited, try:-
awk '
NR == FNR {
A[$1] = $0
next
}
$1 in A {
split(A[$1], T)
...
695
Posted By rdrtx1
for file in *.fa; do awk ' NR==FNR { ...
for file in *.fa;
do
awk '
NR==FNR {
if ($0 ~ /^>/ && why_print_seqlen_for_this_line) {if (seqlen) print seqlen; next;}
# is there a record separator /^>/ in the *.fa files not...
5,979
Posted By vgersh99
awk '{ a[$0]} END{for (i in a) print i ORS}' RS=...
awk '{ a[$0]} END{for (i in a) print i ORS}' RS= my_file.fasta
or better yet:

awk '!a[$0]++' RS= ORS='\n\n' my_file.fasta
Showing results 1 to 3 of 3

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