I encountered several times when trying to cp/rm/cat >10000 files on Mac. Just a note for the solutions.
This is originally from the work that I was trying to find enriched functional clusters on chromosomes. I made 5-gene sliding 50-gene blocks and tested functional enrichment in each block.
Set a bash variable from a command and process with argument.
Using bash associative array to make pairwise alignment of sequences