Skip flags
Skip empty fields
Section titled “Skip empty fields”Syntax
Section titled “Syntax”splitby --skip-empty-fields [selection...]splitby --no-skip-empty-fields [selection...]Short forms: -e / -E
What it does
Section titled “What it does”When enabled, empty fields are ignored during indexing and counting. This is useful when the delimiter can appear multiple times in a row.
Examples
Section titled “Examples”echo "a,,b" | splitby "," -e 2# becho "a,,b" | splitby "," -E 2# (empty)Skip empty lines
Section titled “Skip empty lines”Syntax
Section titled “Syntax”splitby --skip-empty-lines [selection...]splitby --no-skip-empty-lines [selection...]Short forms: -l / -L
What it does
Section titled “What it does”Suppresses output records whose result is empty after processing. Useful when a dataset has blank lines that would otherwise produce empty output.
Examples
Section titled “Examples”printf "a,b\n\nc,d\n" | splitby "," -l 1# a# cSkip undelimited
Section titled “Skip undelimited”Syntax
Section titled “Syntax”splitby --skip-undelimited [selection...]splitby --no-skip-undelimited [selection...]Short forms: -s / -S
What it does
Section titled “What it does”Suppresses output for records that contain no delimiter at all. Only supported in fields mode.
Examples
Section titled “Examples”printf "a,b\nno-delimiter\nc,d\n" | splitby "," -s 1# a# cGotchas
Section titled “Gotchas”--skip-empty-fieldsonly affects indexing: field 2 ofa,,bbecomesbafter the empty field is removed.--skip-undelimitedis only supported in fields mode.