Skip to content

Whole string

Terminal window
splitby -w [selection...]
splitby --whole-string [selection...]

Processes the full input as one record, which is useful when your delimiter is a newline or when you want cross-line selections.

Terminal window
printf "a\nb\nc\n" | splitby "\n" 2 -w
# b
  • Because the input is treated as a single record, this mode does not take advantage of multithreading.