ppmtorgb3
Separate the color components of a PPM file into three separate PGM files. tldr-pages
On several platforms
Several platforms
Separate the color components of a PPM file, saving the outputs to file.red, file.grn, and file.blu
ppmtorgb3 path/to/file.ppmIdentify