I have the text file with very long lines and special symbols inside. Here is an example:
{"keyword1":["A123","D356"],"keyword2":"ENXXXXXXXXXXXXXX","keyword3":[{"name1":["R3123","L2356"],"keyword4":"text here","keyword5":"4LJ"},{"app":,"keyword6":"XX-XX-XX-XXX-XXX-Axy - Important text here","keyword7":"FBG","{[ ** text here.........}
Text in keyword2 is always starting with EN followed by 14 numbers Text in keyword6 is always starting in alphanumeric format XX-XX-XX-XXX-XXX-Axx, where X is 0 to 9, A is symbol A, and xx is 0 to 9, but my or may not be present. "Important text here" can contain any symbol including &, /, \ *. Keywords may not be unique, but they can appear in the text only after keyword7.
What i want to achieve is to take data from the keywords 2 and 6 and make a new file with three columns: separated with semicolon
ENXXXXXXXXXXXXXX;XX-XX-XX-XXX-XXX-Axy;Important text here
Tried awk and sed, but with questionable success due to so many special symbols around.