Bash utility for "chunking" a list of files