How do I split a file in bash?

How do I split a file in bash?
Answer
Bash Splitting Files Split a file
Running the split command without any options will split a file into 1 or more separate files containing up to 1000 lines each. This will create files named xaa , xab , xac , etc, each containing up to 1000 lines. As you can see, all of them are prefixed with the letter x by default.
 

Tìm kiếm

Back
Top