Globing is a shell property to expand a wildcard into a list of matching file names. You have already used it in your question.
In the following explanations, I assume that we are in a directory with the following files:
$ ls -l
-rw-r----- 1 5gon12eder staff 0 Sep 8 17:26 file.txt -rw-r----- 1 5gon12eder staff 0 Sep 8 17:26 funny_cat.jpg -rw-r----- 1 5gon12eder staff 0 Sep 8 17:26 report_2013-1.pdf -rw-r----- 1 5gon12eder staff 0 Sep 8 17:26 report_2013-2.pdf -rw-r----- 1 5gon12eder staff 0 Sep 8 17:26 report_2013-3.pdf -rw-r----- 1 5gon12eder staff 0 Sep 8 17:26 report_2013-4.pdf -rw-r----- 1 5gon12eder staff 0 Sep 8 17:26 report_2014-1.pdf -rw-r----- 1 5gon12eder staff 0 Sep 8 17:26 report_2014-2.pdf
The simplest case is to map all files. The following is an example for a poor person ls .
$ echo *
file.txt funny_cat.jpg report_2013-1.pdf report_2013-2.pdf report_2013-3.pdf report_2013-4.pdf report_2014-1.pdf report_2014-2.pdf
If we want to compare all reports from 2013, we can narrow the correspondence:
$ echo report_2013-*.pdf
report_2013-1.pdf report_2013-2.pdf report_2013-3.pdf report_2013-4.pdf
We could, for example, leave the .pdf part, but I like to be as specific as possible.
You already have a decision to use it to select a range of numbered files. For example, we can match reports by quater:
$ for q in 1 2 3 4; do echo "$q. quater: " report_*-$q.pdf; done
1. quater: report_2013-1.pdf report_2014-1.pdf 2. quater: report_2013-2.pdf report_2014-2.pdf 3. quater: report_2013-3.pdf 4. quater: report_2013-4.pdf
If we are lazy to enter 1 2 3 4 , we could use $(seq 4) . This calls the seq program with argument 4 and replaces its output ( 1 2 3 4 in this case).
Now back to your problem: if you need block sizes that have a capacity of 10, you should expand this example to suit your needs.