tokerago13
Programmer
Hello,
I am generating a csv file via unix. The file is bening generated via Oracle SQL. The csv output for some reason has a chunk of space. I have tried using sed to remove the space but it does not work. I'm not very good with sed. Any help will be appreciated.
I have enclosed the file.
2672,joe.bloggs@hotmail.com,First Name,mary^M2672,joe.bloggs@hotmail.com,Last Name,jane^M2672,joe.bloggs@hotmail.
com,known As,^M2672,joe.bloggs@hotmail.com,Start Date,01-JUN-98^M2672,joe.bloggs@hotmail.com,Cost Code,BC15^M2672,joe.
bloggs@hotmail.com,Division Code^M,BC00^M2672,
joe.bloggs@hotmail.com,Business Unit,B000^M2672,joe.bloggs@hotmail.com,Supervisor First Name,joe^M2672,joe.bloggs@
hotmail.com,Supervisor Last Name,bloggs^M^M
The carriage returns are added deliberatly for data format
Thanks.
I am generating a csv file via unix. The file is bening generated via Oracle SQL. The csv output for some reason has a chunk of space. I have tried using sed to remove the space but it does not work. I'm not very good with sed. Any help will be appreciated.
I have enclosed the file.
2672,joe.bloggs@hotmail.com,First Name,mary^M2672,joe.bloggs@hotmail.com,Last Name,jane^M2672,joe.bloggs@hotmail.
com,known As,^M2672,joe.bloggs@hotmail.com,Start Date,01-JUN-98^M2672,joe.bloggs@hotmail.com,Cost Code,BC15^M2672,joe.
bloggs@hotmail.com,Division Code^M,BC00^M2672,
joe.bloggs@hotmail.com,Business Unit,B000^M2672,joe.bloggs@hotmail.com,Supervisor First Name,joe^M2672,joe.bloggs@
hotmail.com,Supervisor Last Name,bloggs^M^M
The carriage returns are added deliberatly for data format
Thanks.