In Linux with Bash, there is the File numbers_in_one_line.
In this file there is only one line with several numbers, all separated by spaces.
These numbers are the value in bytes for creating files with the program fallocate.
The numbers are random and can change, in this example there are 4 numbers: 24997117901 4848337945 541113465 446445181
Sometimes, the numbers can be more than 4.
If a number over 1GB, so i want to create with fallocate 1GB Parts.
If a number under 1GB, so i want to create with fallocate 100MB Parts.
For Example by these 4 Numbers : 24997117901 4848337945 541113465 446445181
I want to create files like these :
first number (24997117901) every file in 1GB parts.
file1.01
file1.02
file1.03
file1....
second number (4848337945) every file in 1GB parts.
file2.1
file2.2
file2.3
file2....
third number (541113465) every file in 100MB parts.
file3.1
file3.2
file3.3
file3....
fourth number (446445181) every file in 100MB parts.
file4.1
file4.2
file4.3
file4....
How to sperate if MB or GB -range and how many parts and how to give this to fallocate for creating the files by this naming scheme?
I want not create the files with full size first and split them than with split becouse that is to much read/write access by split.
:edit
by exakt 1GB, its for me not important to let it be in 1 part, or to split, what would you recommend?