How to split a large file into 2two parts, at a pattern?
Given an example file.txtfile.txt:
ABC
EFG
XYZ
HIJ
KNL
I want to split this file at "XYZ"XYZ such that file1file1 contains lines up-to "XYZ"XYZ and rest of the lines in file2file2.