2021-07-07 17:47:22 +00:00
|
|
|
cdist-type__sed(7)
|
|
|
|
==================
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__sed - Transform text files with ``sed``
|
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2021-09-14 19:45:36 +00:00
|
|
|
Transform text files with ``sed``.
|
2021-07-07 17:47:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
REQUIRED MULTIPLE PARAMETERS
|
|
|
|
----------------------------
|
|
|
|
script
|
2021-09-14 19:45:36 +00:00
|
|
|
``sed`` script.
|
|
|
|
If ``-`` then the script is read from ``stdin``.
|
2021-07-07 17:47:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
|
|
|
file
|
2021-09-14 19:45:36 +00:00
|
|
|
Path to the file. Defaults to ``$__object_id``.
|
2021-07-07 17:47:22 +00:00
|
|
|
|
2021-07-07 18:23:25 +00:00
|
|
|
onchange
|
2021-09-14 19:45:36 +00:00
|
|
|
Execute this command if ``sed`` changes file.
|
2021-07-07 18:23:25 +00:00
|
|
|
|
2021-07-07 17:47:22 +00:00
|
|
|
|
|
|
|
BOOLEAN PARAMETERS
|
|
|
|
------------------
|
|
|
|
regexp-extended
|
2021-09-14 19:45:36 +00:00
|
|
|
Use extended regular expressions in the script.
|
|
|
|
Might not be supported with every ``sed`` version.
|
2021-07-07 17:47:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
2021-09-14 19:45:36 +00:00
|
|
|
|
2021-07-07 17:47:22 +00:00
|
|
|
.. code-block:: sh
|
|
|
|
|
2021-09-14 19:45:36 +00:00
|
|
|
__sed /tmp/foobar --script 's/foo/bar/'
|
|
|
|
|
|
|
|
echo 's/foo/bar/' | __sed foobar --file /tmp/foobar --script -
|
2021-07-07 17:47:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
AUTHORS
|
|
|
|
-------
|
|
|
|
Ander Punnar <ander-at-kvlt-dot-ee>
|
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
|
|
|
Copyright \(C) 2021 Ander Punnar. You can redistribute it and/or modify it
|
|
|
|
under the terms of the GNU General Public License as published by the Free
|
|
|
|
Software Foundation, either version 3 of the License, or (at your option)
|
|
|
|
any later version.
|