cdist configuration management
Latest manual: https://www.cdi.st/manual/latest/
Home page: https://www.cdi.st
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.1 KiB
57 lines
1.1 KiB
cdist-type__sed(7) |
|
================== |
|
|
|
NAME |
|
---- |
|
cdist-type__sed - Transform text files with ``sed`` |
|
|
|
|
|
DESCRIPTION |
|
----------- |
|
Transform text files with ``sed``. |
|
|
|
|
|
REQUIRED MULTIPLE PARAMETERS |
|
---------------------------- |
|
script |
|
``sed`` script. |
|
If ``-`` then the script is read from ``stdin``. |
|
|
|
|
|
OPTIONAL PARAMETERS |
|
------------------- |
|
file |
|
Path to the file. Defaults to ``$__object_id``. |
|
|
|
onchange |
|
Execute this command if ``sed`` changes file. |
|
|
|
|
|
BOOLEAN PARAMETERS |
|
------------------ |
|
regexp-extended |
|
Use extended regular expressions in the script. |
|
Might not be supported with every ``sed`` version. |
|
|
|
|
|
EXAMPLES |
|
-------- |
|
|
|
.. code-block:: sh |
|
|
|
__sed /tmp/foobar --script 's/foo/bar/' |
|
|
|
echo 's/foo/bar/' | __sed foobar --file /tmp/foobar --script - |
|
|
|
|
|
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.
|
|
|