Skip to Content
gnux

-k, --keep-files

Do not remove output files on errors.

An option of csplitx.

Usage

csplitx -k FILE PATTERN...
csplitx --keep-files FILE PATTERN...

Details

ShortLongValueDefaultMeaning
-k--keep-filesnonedo not remove output files on errors

Examples

Keep the pieces even if a later pattern fails

csplitx -k data.txt 100 200 5000
Output
2890
2900
csplitx: '5000': line number out of range

Help in the terminal

gnux help csplitx --keep-files

On this page