Add split file-write GNU variant

This commit is contained in:
Andrea Cardaci 2021-04-28 09:01:24 +02:00
parent afd946b0c8
commit 77b3b0a06f

View File

@ -12,6 +12,12 @@ functions:
TF=$(mktemp) TF=$(mktemp)
echo DATA >$TF echo DATA >$TF
split -b999m $TF split -b999m $TF
- description: GNU version only. Data will be written in the current directory in a file named `xaa.xxx` by default. The input file will be split in multiple smaller files unless the `-b` option is used, pick a value in MB big enough.
code: |
EXT=.xxx
TF=$(mktemp)
echo DATA >$TF
split -b999m --additional-suffix $EXTENSION $TF
command: command:
- description: Command execution using an existing or newly created file. - description: Command execution using an existing or newly created file.
code: | code: |