1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-15 09:41:07 +00:00
uutils-coreutils/tests/fixtures/split
Jeffrey Finkelstein 6718d97f97 split: add support for -e argument
Add the `-e` flag, which indicates whether to elide (that is, remove)
empty files that would have been created by the `-n` option.

The `-n` command-line argument gives a specific number of chunks into
which the input files will be split. If the number of chunks is
greater than the number of bytes, then empty files will be created for
the excess chunks. But if `-e` is given, then empty files will not be
created.

For example, contrast

    $ printf 'a\n' > f && split -e -n 3 f && cat xaa xab xac
    a
    cat: xac: No such file or directory

with

    $ printf 'a\n' > f && split -n 3 f && cat xaa xab xac
    a
2022-02-17 19:03:51 -05:00
..
asciilowercase.txt tests: correct a test case for split 2022-02-08 22:53:57 -05:00
fivelines.txt split: use ByteChunkWriter and LineChunkWriter 2022-02-08 22:57:57 -05:00
ninetyonebytes.txt split: correct filename creation algorithm 2022-01-10 20:43:22 -05:00
sixhundredfiftyonebytes.txt split: correct filename creation algorithm 2022-01-10 20:43:22 -05:00
threebytes.txt split: add support for -e argument 2022-02-17 19:03:51 -05:00
twohundredfortyonebytes.txt split: add support for -x option (hex suffixes) 2022-02-13 11:18:37 -05:00