OINK
— Translate a text file to
Pig Latin.
Syntax:
OINK
/A:
attribs /CP:
n /D /H /N /P /Q /S
filename…
/A: attribs | attributes mask; valid flags are -ACEHIORS |
/CP: n | interpret non-Unicode input text using code page n |
/D | disable highlight |
/H | display filenames |
/N | disable features |
/P | page output |
/Q | replace ASCII quotes and apostrophes with Unicode open and close quotes |
/S | search in subdirectories for matching files |
… | Range options are also supported. |
If standard input (stdin) is redirected, OINK
will read from
stdin before any filenames specified on the
command line. If no filenames are specified, then
OINK
will read from stdin whether it is redirected or not.
Filenames may include wildcards and directory aliases. You can search into
subdirectories for matching files with /S
. @File lists and
internet files are supported. You may also specify CLIP:
to read
from the clipboard.
If you want to pipe to OINK
, remember that pipes open a new
shell. To pipe to a plugin command, you must either ensure that the plugin is
loaded in the transient shell, e.g. by installing the
.DLL in the shell’s .DLL
directory; or else use temporary files or an in-process pipe.
/NB | do not write a Byte Order Mark |
/NC | disable highlight |
/ND | do not search into hidden directories; only useful with /S |
/NF | suppress the file-not-found error |
/NJ | do not search into junctions; only useful with /S |
/NZ | do not search into system directories; only useful with /S |
You can combine these, e.g. /NDJ
.
(Yes, this is silly. It was a simple test driver to generate gribble for testing some of the other commands and functions in this plugin. It’s very small — most of the code is shared with other commands — so I left it in.)
See also: the @OINK
function, which renders a string as Pig Latin.