Split & Rename Large Files in Shell

To split and rename large files in a shell, the following commands can be used:

split -b 100M inputfile outputfile

-b 100M indicates that the inputfile will be split into separate output files every 100MB, and the output files will be named as outputfileaa, outputfileab, outputfileac, and so on.

If you need to rename the split files, you can use the mv command, for example:

mv outputfileaa newname1
mv outputfileab newname2

In this way, you can rename the split files as newname1, newname2, and so on.

bannerAds