update man
This commit is contained in:
parent
aabef7f44a
commit
5bf0c71e7a
1 changed files with 11 additions and 6 deletions
|
@ -8,35 +8,40 @@ cdist-type__sed - Transform text files with ``sed``
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
TODO
|
Transform text files with ``sed``.
|
||||||
|
|
||||||
|
|
||||||
REQUIRED MULTIPLE PARAMETERS
|
REQUIRED MULTIPLE PARAMETERS
|
||||||
----------------------------
|
----------------------------
|
||||||
script
|
script
|
||||||
TODO
|
``sed`` script.
|
||||||
|
If ``-`` then the script is read from ``stdin``.
|
||||||
|
|
||||||
|
|
||||||
OPTIONAL PARAMETERS
|
OPTIONAL PARAMETERS
|
||||||
-------------------
|
-------------------
|
||||||
file
|
file
|
||||||
TODO
|
Path to the file. Defaults to ``$__object_id``.
|
||||||
|
|
||||||
onchange
|
onchange
|
||||||
TODO
|
Execute this command if ``sed`` changes file.
|
||||||
|
|
||||||
|
|
||||||
BOOLEAN PARAMETERS
|
BOOLEAN PARAMETERS
|
||||||
------------------
|
------------------
|
||||||
regexp-extended
|
regexp-extended
|
||||||
TODO
|
Use extended regular expressions in the script.
|
||||||
|
Might not be supported with every ``sed`` version.
|
||||||
|
|
||||||
|
|
||||||
EXAMPLES
|
EXAMPLES
|
||||||
--------
|
--------
|
||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
true
|
__sed /tmp/foobar --script 's/foo/bar/'
|
||||||
|
|
||||||
|
echo 's/foo/bar/' | __sed foobar --file /tmp/foobar --script -
|
||||||
|
|
||||||
|
|
||||||
AUTHORS
|
AUTHORS
|
||||||
|
|
Loading…
Reference in a new issue