You are here: >

Linux and Unix s2p command

s2p commandAbout s2p
s2p syntax
s2p examples
Related commands
Linux and Unix main page

About s2p

The s2p command takes a sed script specified on the command line and produces a comparable perl script on the standard output.

s2p syntax

s2p [options] [filename]

Options

-D<number> Sets debugging flags.
-n Specifies that this sed script was always invoked with sed -n. Otherwise a switch parser is prepended to the front of the script.
-p Specifies that this sed script was never invoked with sed -n. Otherwise a switch parser is prepended to the front of the script.

s2p examples

s2p myfile

Converts the sed file myfile.

a2p — Creates a Perl script from an AWK script.
perl — Interpreter for the Perl programming language.
sed — A utility for filtering and transforming text.