Scroll to navigation

PYP(1) General Commands Manual PYP(1)

NAME

pyp - The Pyed Piper: A Modern Python Alternative to awk, sed and Other Unix Text Manipulation Utilities

SYNOPSIS

pyp [options] files ...

DESCRIPTION

pyp, the Pyed Piper, is a command line tool for text manipulation. It is similar to awk and sed in functionality, but its subcommands are Python based, and thus more familiar to many programmers.

It can operate both on a per-line base and on the complete input stream. Different features can be pipelined in a single command by using the pipe character familiar from shell commands.

pyp backs up its input for reruns with modified commands, and can save commands as macros. On the downside, the rerun feature makes it unsuitable for continuous pipe operation.

OPTIONS

These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, use --manual.

Show this help message and exit.
Prints out extended help.
Lists all available macros.
Saves current command as macro. use "#" for adding
comments EXAMPLE:
pyp -s "great_macro # prints first letter" "p[1]".
Searches for macros with keyword or user name.
Deletes specified public macro.
Specify group macros for save and delete; default is user.
Specify text file to load. For advanced users,
you should typically cat a file into pyp.
Execute all commands.
Prints raw, uncolored output.
Prints out generic PypCustom.py config file.
Generate this number of blank input lines; useful for
generating numbered lists with variable 'n'.
Use with command that generates output with no input;
same as --dummy_input 1.
Print blank lines for lines that test as False.
default is to filter out False lines from the output.
Rerun based on automatically cached data from the last run.
Use this after executing "pyp", pasting input into the shell,
and hitting CTRL-D.

SEE ALSO

awk(1), grep(1), sed(1).

AUTHOR

pyp was written by Toby Rosen <tobyrosen@gmail.com>.

This manual page was written by Khalid El Fathi <khalid@elfathi.fr>, for the Debian project (and may be used by others).

March 19, 2012