I need to select and output into a file some text contained in a specific string.
Let's say the string is: ABCDEFGHIJKLMNOP
What would be a command to extract what is after ABCDEF and before K? (i.e. GHIJ only) to another file?
I tried with grep command but due to my poor understanding of its complexity it failed every time. I must be missing something very basic.
Thanks a lot in advance.