I have a list of files stored in a variable obtained by entering
files="./*.fasta"
I would like to create a for loop that will loop through: the first 200 elements, elements 201-400, elements 401-578, for example.
How can I achieve this? I tried something like
for file in $files[1-200]; do
echo $file
done
but clearly this does not work.