diff --git a/pages/common/pamexec.md b/pages/common/pamexec.md new file mode 100644 index 000000000..a765a7d6e --- /dev/null +++ b/pages/common/pamexec.md @@ -0,0 +1,13 @@ +# pamexec + +> Execute a shell command on each image in a Netpbm file. +> See also: `pamfile`, `pampick`, `pamsplit`. +> More information: . + +- 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` diff --git a/pages/common/pampick.md b/pages/common/pampick.md new file mode 100644 index 000000000..d0b18669b --- /dev/null +++ b/pages/common/pampick.md @@ -0,0 +1,9 @@ +# pampick + +> Pick images out of a multi-image Netpbm stream. +> See also: `pamfile`, `pamsplit`. +> More information: . + +- Execute a shell command on each image in a Netpbm file: + +`pampick {{image_number1 image_number2 ...}} < {{path/to/image.pam}} > {{path/to/output.pam}}` diff --git a/pages/common/pamsplit.md b/pages/common/pamsplit.md new file mode 100644 index 000000000..f7e6f12ba --- /dev/null +++ b/pages/common/pamsplit.md @@ -0,0 +1,13 @@ +# pamsplit + +> Split a multi-image Netpbm file into multiple single-image Netpbm files. +> See also: `pamfile`, `pampick`, `pamexec`. +> More information: . + +- 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}}` diff --git a/pages/common/pnmsplit.md b/pages/common/pnmsplit.md new file mode 100644 index 000000000..807c3af5c --- /dev/null +++ b/pages/common/pnmsplit.md @@ -0,0 +1,8 @@ +# pnmsplit + +> This command is superseded by `pamsplit`. +> More information: . + +- View documentation for the current command: + +`tldr pamsplit`