library/sed
v0.1.0 SignedStream editor (sed) for filtering and transforming text
Install
$
act pull actpkg.dev/library/sed Capabilities
Elevated host access
Requests: Filesystem read/write.
- wasi:filesystem Filesystem read/write
** (rw)
Risk Low Medium High
Tools · 2
act:tools interface — expand a tool for its input schema.
sed Transform text with a sed script (text in, text out). By default the script is compiled in sandbox mode, which rejects the e, r and w commands.
Transform text with a sed script (text in, text out). By default the script is compiled in sandbox mode, which rejects the e, r and w commands.
Parameter Type Description debug boolean Annotate program execution (`--debug`). input* string Text to transform. posix boolean Disable GNU extensions (`--posix`). quiet boolean Suppress automatic printing of the pattern space (`-n`). script* string The sed program, e.g. `s/foo/bar/g`. Separate multiple commands with `;` or newlines. sandbox boolean Reject the `e` (shell), `r` (read file) and `w` (write file) commands when the script is compiled, before any input is read. Defaults to true; set false only when the script legitimately needs file I/O. separate boolean Consider each input file separately rather than as one stream (`-s`). null_data boolean Separate lines by NUL bytes instead of newlines (`-z`). line_length integer Line-wrap length for the `l` command (`-l`). character_mode CharMode Whether data is interpreted as UTF-8 characters or raw bytes. extended_regexp boolean Use extended regular expressions (`-E`). Returns content.
sed_files Run a sed script over files on disk, either returning the transformed text or editing the files in place. Each file is processed independently (sed -s).
Run a sed script over files on disk, either returning the transformed text or editing the files in place. Each file is processed independently (sed -s).
Parameter Type Description debug boolean Annotate program execution (`--debug`). paths* string[] Paths of the files to process. Must be non-empty. posix boolean Disable GNU extensions (`--posix`). quiet boolean Suppress automatic printing of the pattern space (`-n`). script* string The sed program, e.g. `s/foo/bar/g`. sandbox boolean Reject the `e` (shell), `r` (read file) and `w` (write file) commands when the script is compiled, before any input is read. Defaults to true; set false only when the script legitimately needs file I/O. in_place boolean Edit the files in place instead of returning the transformed text. separate boolean Consider each input file separately rather than as one stream (`-s`). null_data boolean Separate lines by NUL bytes instead of newlines (`-z`). line_length integer Line-wrap length for the `l` command (`-l`). character_mode CharMode Whether data is interpreted as UTF-8 characters or raw bytes. extended_regexp boolean Use extended regular expressions (`-E`). in_place_suffix string | null Backup suffix to keep the original under when editing in place (e.g. `.bak`). Implies `in_place`. Returns content.
Readme
No README provided.