Answers for "linux split files into n parts"

4

bash split file into multiple files

# Basic syntax:
split --lines=1000 --numeric-suffixes --suffix-length=2 input_file output_file_prefix
# Where:
#	- --lines=# is the number of lines to include per split file
#	- --numeric-suffixes tells split to use numbers on the output filenames
#	- --suffix-length=# tells split to use a numeric length of #, 
#		E.g. 2 = 00, 01, 02...
#	- output_file_prefix is the first part of the filename for every 
#		output file
Posted by: Guest on October-04-2020
0

linux split file by lines

$ split --verbose -l1000 logfile log.
creating file 'log.aa'
creating file 'log.ab'
...
Posted by: Guest on October-27-2021

Code answers related to "linux split files into n parts"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language