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
Last activity: Dec 17, 2019, 10:08 AM