Sample Header Ad - 728x90

Split file into n files using csplit (or similar tool)

0 votes
1 answer
895 views
I have a huge file with the following pattern: ABC line 1 line 2 line 3 ABC line 1 line 2 ABC line1 ABC line 1 line 3 Using csplit tool I'm able to split the file above according to /ABC/ pattern into 4 subfiles: csplit -z input.txt /ABC/ {*} I wonder how to manually specify the number of desired output files.
Asked by Andrej (353 rep)
Dec 17, 2019, 06:41 AM
Last activity: Dec 17, 2019, 10:08 AM