Skip to content

Whole string

Terminal window
splitby -w [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 -w -d "\n" 2
# b
  • Because the input is treated as a single record, this mode does not take advantage of multithreading.