Plan SHELL_1
IN-+-CRCBB---118C2D---FRB_342-+-SS77_23--+-LAS20_1|GGK_734
| +-AB_800_1-+-BAS_001|GGK_332
| | \-BAS_003|GGK_700
Where it shows a sort of chart, where I need a list of all the unique strings:
All the strings starting with Plan (e.g. ABCD, SHELL_1)
All the strings within - and - (e.g. 118C2C, AB_800_1, FRB_342, 172BB etc.).
All the strings with single - and containing | in between separately (e.g. LAS20_1|GGk_734, BAS_001|GGK_332, BAS_003|GGK_700, LAS24_3|GGK_774 etc.).
Its a long file, can someone help me how to extract these strings.
I tried 2 approaches, first to read the file line by line, and using awk to print the arguments till NF is reached , but I got error that can not open file.
Second, I converted the file in a simple delimited file, through sed, but still unable to extract these strings out.