Skip to content

Skip flags

Terminal window
splitby --skip-empty-fields [selection...]
splitby --no-skip-empty-fields [selection...]

Short forms: -e / -E

When enabled, empty fields are ignored during indexing and counting. This is useful when the delimiter can appear multiple times in a row.

Terminal window
echo "a,,b" | splitby "," -e 2
# b
Terminal window
echo "a,,b" | splitby "," -E 2
# (empty)

Terminal window
splitby --skip-empty-lines [selection...]
splitby --no-skip-empty-lines [selection...]

Short forms: -l / -L

Suppresses output records whose result is empty after processing. Useful when a dataset has blank lines that would otherwise produce empty output.

Terminal window
printf "a,b\n\nc,d\n" | splitby "," -l 1
# a
# c

Terminal window
splitby --skip-undelimited [selection...]
splitby --no-skip-undelimited [selection...]

Short forms: -s / -S

Suppresses output for records that contain no delimiter at all. Only supported in fields mode.

Terminal window
printf "a,b\nno-delimiter\nc,d\n" | splitby "," -s 1
# a
# c
  • --skip-empty-fields only affects indexing: field 2 of a,,b becomes b after the empty field is removed.
  • --skip-undelimited is only supported in fields mode.