Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I'm having text file like this
CN=100
adshnxhndxghdngfhdsfs
dsjfxnudshxf hfgdsh
ldnf jsdbf hdsbf
IN=200
jhnxrhewxrgewhgxew
ejxn jehwbf ewhfbew
jdksfn sbfhb hfe
XN=300
jskhd sa
jd jhgdsxbfgsdhbfgeh
kdsnbdhfhdgfhdbfhd
IN=400
jhnxrhewxrgewhgxew
ejxn jehwbf ewhfbew
jdksfn sbfhb hfe
XN=500
jhnxrhewxrgewhgxew
ejxn jehwbf ewhfbew
jdksfn sbfhb hfe
In above file, CN= and XN= are my field separator. More can be there, Its just an example. But row separator can be found in this format only like I have mentioned. CN= or XN= etc
I need to store data after every row separator in different file.
From this file I should be getting five output files. That would be great if I could get row separator value in file as well.
Any suggestion ?
Thanks