File: read-pgm

package info (click to toggle)
pypng 0.0.20%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 992 kB
  • sloc: python: 4,506; sh: 186; makefile: 12
file content (8 lines) | stat: -rwxr-xr-x 144 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#!/bin/sh

PATH=${PWD%code*}code:$PATH

printf 'P5 2 2 3\n\0\1\2\3' |
pripamtopng - |
pripnglsch - |
grep -q 'IHDR.*00000002000000020200000000'