Need help to replace leading and trailing spaces on to the csv file spooled out of Oracle Sqlplus. Unable to do it.
Below is the sample data
Code: Select all
ASSET ,PARENT ,SERIAL ,ASSET ,LOCATION ,DESCRIPTION ,VENDOR ,FAILUREC,MANUFACTURER,PURCHASEPRICE,REPLACECOST,INSTALLDATE ,WARRANTYEXPDATE , TOTALCOST, YTDCOST,BUDGETCOST,CALNUM , ISRUNNING,ITEMNUM ,UNCHARGEDCOST,TOTUNCHARGEDCOST,TOTDOWNTIME,STATUSDATE ,CHANGEDATE ,
12345 , ,2011124 7 , ,2500422 ,XFMR 1.8 MVA , , ,0000202695 , 0, 0, , , 0, 0, 0, , 1, , 0, 0, 0,2015-04-30 05:28:40,2015-04-30 05:28:40,
12345 , ,2011124 1 , ,2500448 ,XFMR 1.8 MVA , , ,0000202695 , 0, 0, , , 0, 0, 0, , 1, , 0, 0, 0,2015-04-30 05:33:03,2015-04-30 05:33:03,
12345 , ,52-637-0 2-29 , ,2500522 ,XFMR, 500 kVA, Padmount , , ,0000239070 , 0, 0, , , 0, 0, 0, , 1, , 0, 0, 0,2015-08-07 03:10:30,2015-08-07 03:17:14,
Requesting somebody to please help urgently.
thanks
Satish