I have data in the following format:
.......{INFO1}.....[INFO2]....
For awk it should be really simple to pick up the IN
awk
IN
You just have to add {} to the field separator:
{}
~$ echo ".......{INFO1}.....[INFO2]...." | awk -F'[][{}]' '{print $2,$4}' INFO1 INFO2