cdist-type__sed7
Transform text files with sed
Overview
Transform text files with sed.
Required multiple parameters
script-
sedscript. If-then the script is read fromstdin.
Optional parameters
file-
Path to the file. Defaults to
$__object_id.
onchange-
Execute this command if
sedchanges file.
Boolean parameters
regexp-extended-
Use extended regular expressions in the script. Might not be supported with every
sedversion.
Examples
__sed /tmp/foobar --script 's/foo/bar/' echo 's/foo/bar/' | __sed foobar --file /tmp/foobar --script -
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.
History
- Debian 13 (Trixie): the text shown here
- Debian 12 (Bookworm)