I have around 250,000 files whose file names look like: read_\d\d.fasta
I get the argument is too long error when running cat *.fasta > all.fasta command.
Normally I use a for loop or find when I get the argument is too long error.
How can I use a for loop (or any other method) to concatenate this number of files?
I have tried for i in read*fasta ; do cat $i >> combined.$i ; done However this doesn't concatenate the files.
I have looked at other answers when looking as this error, however I don't see how for/find can be used here.
 
     
    