pamsplit
Split a multi-image Netpbm file into multiple single-image Netpbm files.
TLDR
Split a multi-image Netpbm file into multiple single-image Netpbm files
$ pamsplit [path/to/image.pam]
Specify a pattern for naming output files
$ pamsplit [path/to/image.pam] [file_%d.pam]