pnmsplit, pamsplit, pamexec, pampick: add pages (#12412)

pull/23/head
Juri Dispan 2024-03-04 07:43:52 +01:00 committed by GitHub
parent d2f18edf19
commit 7c46ee57e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 43 additions and 0 deletions

13
pages/common/pamexec.md Normal file
View File

@ -0,0 +1,13 @@
# pamexec
> Execute a shell command on each image in a Netpbm file.
> See also: `pamfile`, `pampick`, `pamsplit`.
> More information: <https://netpbm.sourceforge.net/doc/pamexec.html>.
- Execute a shell command on each image in a Netpbm file:
`pamexec {{command}} {{path/to/image.pam}}`
- Stop processing if a command terminates with a nonzero exit status:
`pamexec {{command}} {{path/to/image.pam}} -check`

9
pages/common/pampick.md Normal file
View File

@ -0,0 +1,9 @@
# pampick
> Pick images out of a multi-image Netpbm stream.
> See also: `pamfile`, `pamsplit`.
> More information: <https://netpbm.sourceforge.net/doc/pampick.html>.
- Execute a shell command on each image in a Netpbm file:
`pampick {{image_number1 image_number2 ...}} < {{path/to/image.pam}} > {{path/to/output.pam}}`

13
pages/common/pamsplit.md Normal file
View File

@ -0,0 +1,13 @@
# pamsplit
> Split a multi-image Netpbm file into multiple single-image Netpbm files.
> See also: `pamfile`, `pampick`, `pamexec`.
> More information: <https://netpbm.sourceforge.net/doc/pamsplit.html>.
- 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}}`

8
pages/common/pnmsplit.md Normal file
View File

@ -0,0 +1,8 @@
# pnmsplit
> This command is superseded by `pamsplit`.
> More information: <https://netpbm.sourceforge.net/doc/pnmsplit.html>.
- View documentation for the current command:
`tldr pamsplit`