Skip to main content
8 events
when toggle format what by license comment
Apr 5, 2018 at 17:30 comment added user284592 I've now also tried what is posted from steeldriver (amended by Kusalananda), which sounds like what I want, but I don't know enough about the syntax to understand what went it wrong. I produced new files but only concatenated two files and there are many more matching in other sub-directories.
Apr 5, 2018 at 17:08 history edited Kusalananda CC BY-SA 3.0
added 266 characters in body
Apr 5, 2018 at 17:07 comment added steeldriver Thanks yes I realized that after it was too late to edit the comment - I guess I had in mind that the OP might want to name the aggregate files something like basename_all.fasta
Apr 5, 2018 at 17:05 comment added Kusalananda @steeldriver Yes, that would also work, except you're doing some unnecessary filename suffix juggling there. I'll add that as an alternative.
Apr 5, 2018 at 16:42 comment added user284586 Thank you all for your replies, but I'm still having issues. The file.list is empty when I try that option. Also, just the be clear, the result will be hundreds of concatenated files - made from numerous files of the same prefix.
Apr 5, 2018 at 16:27 comment added steeldriver Hmm... shouldn't something like find dir -name '*.fasta' -exec sh -c 'for f; do cat "$f" >> "$(basename "$f" ".fasta").fasta"; done' sh {} + work also?
Apr 5, 2018 at 16:23 history edited Kusalananda CC BY-SA 3.0
added 268 characters in body
Apr 5, 2018 at 16:13 history answered Kusalananda CC BY-SA 3.0