code |
LFILE=file_to_read
TF=$(mktemp)
split $LFILE $TF
cat $TF*
|
|
|
description |
code |
Data will be written in the current directory in a file named `xaa` 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. |
TF=$(mktemp)
echo DATA >$TF
split -b999m $TF
|
|
|
description |
code |
Command execution using an existing or newly created file. |
COMMAND=id
TF=$(mktemp)
split --filter=$COMMAND $TF
|
|
description |
code |
Command execution using stdin (and close it directly). |
COMMAND=id
echo | split --filter=$COMMAND /dev/stdin
|
|
|
description |
code |
The shell prompt is not printed. |
split --filter=/bin/sh /dev/stdin
|
|
|
description |
code |
The shell prompt is not printed. |
split --filter=/bin/sh /dev/stdin
|
|
|