Skip to content

safe-bash: add csplit (context/pattern split) #679

Description

@kamilio

Missing: csplit. split (size/line chunks) exists but not pattern/line-number context splitting.

Behavior: GNU csplit [-f PREFIX] [-b SUFFIX] [-k] [-z] FILE PATTERN… with /regex/, %regex%, {N}/{*} repeats, line numbers, +/- offsets. Route regexes through the bounded regex executor; cap output-file count.

From the safe-bash command gap analysis (2026-09-08). Sandbox constraints apply: bounded input/CPU/memory, VFS-only paths, cooperative cancellation, no host process/network beyond the existing curl authorizer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions