Shell/Bash: bash split file into multiple files Example

By

Shell/Bash Example: This is the "bash split file into multiple files" Example. compiled from many sources on the internet by SimpleTutorials.org

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


* Summary: This "bash split file into multiple files" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others