It might be a little safer to do.
find dir1 dir2 dir3 -type f \( -name "*.fa" -o -name "*.fasta" \) -not -name 'concat.fasta' -exec cat '{}' > 'concat.fasta' '+'
• 0 views
•
link
what do you mean with concatenate ? concatenate the files or the entries ?
I want to concatenate the input FASTA files.
If you are referring to not losing the fasta header inside each file then that would not happen when you
catthe files together. But you will end up with a single fasta file after this operation.