As sequencing experiments generate batches of fastq file after demultiplexing, I wrote a script for getting the size of a list of fastq files in the path:
Usage:
./fastqSize <'$fastqpath/*fastq'>|<'$fastqpath/*fastq.gz'>
And this will output a very nice tab-deliminated format of file name on the first column and sequence count on the second.
The input can be gzip file as well, but is determined by the filename.
The code is deposited on github along with my other fastq manipulation tools.
*Compiling requires gzstream library