โ06-28-2021 09:20 PM
Hi team,
Looking for a suggestion/enhancement to achieve the below senario. when i read a csv file (it might have \n\r (windows) & \n(unix) ). Who to fix this โฆ
Today I read the file and when I do the bulk load using redshift bulk load snap and the data gets loaded with the \n\r . How can I escape these characters?
When i look at the properties of the snap , i could see the below. but itโs not working.
Solved! Go to Solution.
โ07-01-2021 02:38 AM
so โฆ this gave me the solution
$content.contains(โ\r\nโ)?
($content.replaceAll(โ\r\nโ,โ\nโ) && $content.replaceAll(โ\nโ,โโ) ) : $content.replaceAll(โ\nโ,โ\nโ)
โ07-01-2021 06:03 AM
@koryknick Thanks for the suggestion โฆ !! keeping this in y noteโฆ!