More solutions here: https://www.biostars.org/p/435813/
awk '/>/{sub(">","&"FILENAME"_");sub(/\.fasta/,x)}1' assembly.fasta | sed 's/ /_/g' | grep '>'
No comments:
Post a Comment