Need to add double and single quotes in SED
Input
db2 RUNSTATS ON TABLE ITMUSER.AMC_Internet_Service_Element_Y WITH DISTRIBUTION AND DETAILED INDEXES ALL SHRLEVEL CHANGE;
Desired output
db2 'RUNSTATS ON TABLE "ITMUSER"."AMC_Internet_Service_Element_Y" WITH DISTRIBUTION AND DETAILED INDEXES ALL SHRLEVEL CHANGE';
Requirements:
Add a single quote before RUNSTATS, add double quotes around ITMUSER and AMC_Internet_Service_Element_Y and a final single quote after CHANGE
|