Skip to content

Skip empty

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

Short forms:

Terminal window
splitby -e [selection...]
splitby -E [selection...]

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 -d "," -e 2
# b
Terminal window
echo "a,,b" | splitby -d "," -E 2
# (empty)