16.145. cdist-type__sed(7)¶
16.145.1. NAME¶
cdist-type__sed - Transform text files with sed
16.145.2. DESCRIPTION¶
Transform text files with sed
.
16.145.3. REQUIRED MULTIPLE PARAMETERS¶
- script
sed
script. If-
then the script is read fromstdin
.
16.145.4. OPTIONAL PARAMETERS¶
- file
Path to the file. Defaults to
$__object_id
.- onchange
Execute this command if
sed
changes file.
16.145.5. BOOLEAN PARAMETERS¶
- regexp-extended
Use extended regular expressions in the script. Might not be supported with every
sed
version.
16.145.6. EXAMPLES¶
__sed /tmp/foobar --script 's/foo/bar/'
echo 's/foo/bar/' | __sed foobar --file /tmp/foobar --script -
16.145.8. 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.