pnmsplit, pamsplit, pamexec, pampick: add pages (#12412)
This commit is contained in:
13
pages/common/pamexec.md
Normal file
13
pages/common/pamexec.md
Normal 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
9
pages/common/pampick.md
Normal 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
13
pages/common/pamsplit.md
Normal 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
8
pages/common/pnmsplit.md
Normal 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`
|
Reference in New Issue
Block a user