Forum Discussion

makeshwar's avatar
makeshwar
New Contributor II
5 years ago
Solved

Redshift bulk load

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 d...
  • makeshwar's avatar
    makeshwar
    5 years ago

    so … this gave me the solution

    $content.contains(‘\r\n’)?
    ($content.replaceAll(‘\r\n’,‘\n’) && $content.replaceAll(‘\n’,‘’) ) : $content.replaceAll(‘\n’,‘\n’)