JustBash.Commands.Sed.Executor (JustBash v0.4.0)

View Source

Executor for SED commands.

Processes input content by applying SED commands to each line.

Summary

Functions

Process content by applying SED commands.

Types

line_state()

@type line_state() :: %{
  pattern_space: String.t(),
  deleted: boolean(),
  printed: boolean(),
  appended: String.t() | nil,
  inserted: String.t() | nil,
  changed: String.t() | nil,
  line_num: pos_integer(),
  total_lines: pos_integer()
}

Functions

execute(content, commands, silent)

Process content by applying SED commands.

Returns the transformed output string.