We have a string as below:
**XX_EMAIL_FILES FCP_REQID=9614696 FCP_LOGIN="APPS/sup12" FCP_USERID=5667 FCP_USERNAME="SRI" FCP_PRINTER="noprint" FCP_SAVE_OUT=Y FCP_NUM_COPIES=1 "9614556_SUP12_XX_Workflow_Stuck_AP_Invoices.csv" "/tmp_mnt2/attachments" "Sri.B@xx.com" "This is the subject for the mail" "PFA for the list of Invoices that are stuck in workflow."**
We need to fetch only the below string into a variable:
This is the subject for the mail
Similarly, need to fetch only the below string into other variable: PFA for the list of Invoices that are stuck in workflow.
These are not always the same. the strings may vary based on what user entered.
Can anyone please help me on how to fetch only those strings using UNIX commands
Regards, Bommi
**
part of the original string? – fra-san Aug 14 '19 at 06:43sed(1)
to isolate the required substring. – vonbrand Aug 14 '19 at 13:31