split

File Read

This copies the input file in the current working directory in a file named `prefixaasuffix`, just make sure to pick a value big enough, instead of `999`.

split -b 999 --additional-suffix suffix /path/to/input-file prefix
cat prefixaasuffix

File Write

This copies the input file in the current working directory in a file named `prefixaasuffix`, just make sure to pick a value big enough, instead of `999`.

split -b 999 --additional-suffix suffix /path/to/input-file prefix

Shell

split --filter='/bin/sh -i 0<&2 1>&2' /etc/hosts